-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11,837 changed files
with
647,362 additions
and
817,812 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Update PHP-CS-Fixer | ||
1fdfcfe49a86386d2fb628a5da1d24648f743162 | ||
|
||
# Enable native_function_invocation | ||
7aa98dceb6d50650bff35d903ecc9a3b71ccd85e | ||
|
||
# Apply more strict PHP Codestyle | ||
321f6f4eeb3f234a111c970b705bd330b43fb4af |
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,84 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer; | ||
use PhpCsFixerCustomFixers\Fixer\NoUselessParenthesisFixer; | ||
use PhpCsFixerCustomFixers\Fixer\NoUselessStrlenFixer; | ||
use PhpCsFixerCustomFixers\Fixer\PhpdocParamTypeFixer; | ||
use PhpCsFixerCustomFixers\Fixer\SingleSpaceAfterStatementFixer; | ||
use PhpCsFixerCustomFixers\Fixer\SingleSpaceBeforeStatementFixer; | ||
use PhpCsFixerCustomFixers\Fixer\NoSuperfluousConcatenationFixer; | ||
use PhpCsFixerCustomFixers\Fixers; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in(__DIR__ . '/engine/Shopware') | ||
->in(__DIR__ . '/tests') | ||
->in(__DIR__ . '/recovery') | ||
->exclude('Plugins/Community') | ||
->exclude('Plugins/Local') | ||
->exclude('install/templates') | ||
->exclude('update/templates') | ||
->notPath('LegacyPhpDumper.php') | ||
->notPath('MemoryLimitTest.php'); | ||
|
||
$header = <<<EOF | ||
Shopware 5 | ||
Copyright (c) shopware AG | ||
According to our dual licensing model, this program can be used either | ||
under the terms of the GNU Affero General Public License, version 3, | ||
or under a proprietary license. | ||
The texts of the GNU Affero General Public License with an additional | ||
permission and of our proprietary license can be found at and | ||
in the LICENSE file you have received along with this program. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
"Shopware" is a registered trademark of shopware AG. | ||
The licensing of the program under the AGPLv3 does not imply a | ||
trademark license. Therefore any rights, title and interest in | ||
our trademarks remain entirely with us. | ||
EOF; | ||
|
||
return (new Config()) | ||
->registerCustomFixers(new Fixers()) | ||
->setRiskyAllowed(true) | ||
->setCacheFile('var/cache/php-cs-fixer') | ||
->setRules([ | ||
'@PSR12' => true, | ||
'@Symfony' => true, | ||
|
||
'class_attributes_separation' => ['elements' => ['method' => 'one', 'property' => 'one']], | ||
'concat_space' => ['spacing' => 'one'], | ||
'doctrine_annotation_indentation' => true, | ||
'doctrine_annotation_spaces' => true, | ||
'general_phpdoc_annotation_remove' => [ | ||
'annotations' => ['copyright', 'category'], | ||
], | ||
'header_comment' => ['header' => $header, 'separate' => 'bottom', 'comment_type' => 'PHPDoc'], | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'no_superfluous_phpdoc_tags' => true, | ||
'phpdoc_line_span' => true, | ||
'phpdoc_order' => true, | ||
'phpdoc_summary' => false, | ||
'phpdoc_var_annotation_correct_order' => true, | ||
'php_unit_test_case_static_method_calls' => true, | ||
'single_line_throw' => false, | ||
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], | ||
'operator_linebreak' => ['only_booleans' => true], | ||
'native_function_invocation' => true, | ||
|
||
NoUselessCommentFixer::name() => true, | ||
SingleSpaceAfterStatementFixer::name() => true, | ||
SingleSpaceBeforeStatementFixer::name() => true, | ||
PhpdocParamTypeFixer::name() => true, | ||
NoSuperfluousConcatenationFixer::name() => true, | ||
NoUselessStrlenFixer::name() => true, | ||
NoUselessParenthesisFixer::name() => true, | ||
]) | ||
->setFinder($finder); |
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.