forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
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 codeigniter4#7750 from codeigniter4/develop
4.3.7 Ready code
- Loading branch information
Showing
514 changed files
with
9,725 additions
and
5,320 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
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 |
---|---|---|
|
@@ -43,19 +43,45 @@ | |
__DIR__ . '/spark', | ||
]); | ||
|
||
$overrides = []; | ||
$overrides = [ | ||
'php_unit_data_provider_return_type' => true, | ||
'no_extra_blank_lines' => [ | ||
'tokens' => [ | ||
'attribute', | ||
'break', | ||
'case', | ||
'continue', | ||
'curly_brace_block', | ||
'default', | ||
'extra', | ||
'parenthesis_brace_block', | ||
'return', | ||
'square_brace_block', | ||
'switch', | ||
'throw', | ||
'use', | ||
], | ||
], | ||
]; | ||
|
||
$options = [ | ||
'cacheFile' => 'build/.php-cs-fixer.cache', | ||
'finder' => $finder, | ||
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'), | ||
'customRules' => [ | ||
NoCodeSeparatorCommentFixer::name() => true, | ||
], | ||
'cacheFile' => 'build/.php-cs-fixer.cache', | ||
'finder' => $finder, | ||
]; | ||
|
||
return Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary( | ||
'CodeIgniter 4 framework', | ||
'CodeIgniter Foundation', | ||
'[email protected]' | ||
); | ||
|
||
// @TODO: remove this check when support for PHP 7.4 is dropped | ||
if (PHP_VERSION_ID >= 80000) { | ||
$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
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
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
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
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
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.