-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8746 from kenjis/test-add-return-void
test: add return void
- Loading branch information
Showing
49 changed files
with
246 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file is part of CodeIgniter 4 framework. | ||
* | ||
* (c) CodeIgniter Foundation <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
use CodeIgniter\CodingStandard\CodeIgniter4; | ||
use Nexus\CsConfig\Factory; | ||
use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer; | ||
use Nexus\CsConfig\FixerGenerator; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->files() | ||
->in([ | ||
__DIR__ . '/tests', | ||
]) | ||
->exclude([ | ||
]) | ||
->notPath([ | ||
'_support/View/Cells/multiplier.php', | ||
'_support/View/Cells/colors.php', | ||
'_support/View/Cells/addition.php', | ||
]) | ||
->notName('#Foobar.php$#') | ||
->append([ | ||
]); | ||
|
||
$overrides = [ | ||
'void_return' => true, | ||
]; | ||
|
||
$options = [ | ||
'cacheFile' => 'build/.php-cs-fixer.tests.cache', | ||
'finder' => $finder, | ||
]; | ||
|
||
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
'CodeIgniter 4 framework', | ||
'CodeIgniter Foundation', | ||
'[email protected]' | ||
); | ||
|
||
$config | ||
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer')) | ||
->setRules(array_merge($config->getRules(), [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
])); | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.