Skip to content

Commit 5193e83

Browse files
committed
Updated friendsofphp/php-cs-fixer from v2.16.4 to v2.17.3, including its dependencies (see details), also updated coding standard rules a bit and fixed offending code.
- Updating composer/semver (1.5.1 => 1.7.2) - Updating composer/xdebug-handler (1.4.2 => 1.4.5) - Updating doctrine/annotations (1.10.3 => 1.11.1) - Updating friendsofphp/php-cs-fixer (v2.16.4 => v2.17.3) - Updating php-cs-fixer/diff (v1.3.0 => v1.3.1) - Updating symfony/console (v4.4.11 => v4.4.18) - Updating symfony/deprecation-contracts (v2.1.3 => v2.2.0) - Updating symfony/event-dispatcher (v4.4.11 => v4.4.18) - Updating symfony/filesystem (v5.1.3 => v5.2.1) - Updating symfony/finder (v5.1.3 => v5.2.1) - Updating symfony/options-resolver (v5.1.3 => v5.2.1) - Updating symfony/polyfill-ctype (v1.18.0 => v1.22.0) - Updating symfony/polyfill-mbstring (v1.18.0 => v1.22.0) - Updating symfony/polyfill-php70 (v1.18.0 => v1.20.0) - Updating symfony/polyfill-php72 (v1.18.0 => v1.22.0) - Updating symfony/polyfill-php73 (v1.18.0 => v1.22.0) - Updating symfony/polyfill-php80 (v1.18.0 => v1.22.0) - Updating symfony/process (v4.4.11 => v4.4.18) - Updating symfony/service-contracts (v2.1.3 => v2.2.0) - Updating symfony/stopwatch (v5.1.3 => v5.2.1)
1 parent 75c135f commit 5193e83

File tree

9 files changed

+179
-196
lines changed

9 files changed

+179
-196
lines changed

.php_cs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,24 @@ return PhpCsFixer\Config::create()
99
->setRules([
1010
'@Symfony' => true,
1111
'array_syntax' => ['syntax' => 'short'],
12-
'binary_operator_spaces' => ['default' => null],
12+
'binary_operator_spaces' => ['default' => null, 'operators' => ['=>' => 'align']],
1313
'concat_space' => ['spacing' => 'one'],
1414
'declare_strict_types' => true,
15-
'ordered_imports' => ['sort_algorithm' => 'alpha'],
16-
'phpdoc_align' => false,
17-
'phpdoc_separation' => false,
15+
'no_alias_functions' => true,
16+
'no_useless_sprintf' => true,
17+
'ordered_imports' => [
18+
'imports_order' => [
19+
'class',
20+
'function',
21+
'const',
22+
],
23+
'sort_algorithm' => 'alpha'
24+
],
25+
'phpdoc_align' => ['align' => 'left'],
1826
'phpdoc_summary' => false,
19-
'yoda_style' => null,
27+
'self_accessor' => true,
2028
'single_line_throw' => false,
29+
'yoda_style' => null,
2130
])
2231
->setFinder($finder)
2332
;

Checker/Catalog/Category/UrlKey/EmptyUrlKey.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ private function checkForEmptyUrlKeyAttributeValues(): array
6464
->addAttributeToFilter([
6565
[
6666
'attribute' => UrlKeyChecker::URL_KEY_ATTRIBUTE,
67-
'null' => true,
67+
'null' => true,
6868
],
6969
[
7070
'attribute' => UrlKeyChecker::URL_KEY_ATTRIBUTE,
71-
'eq' => '',
71+
'eq' => '',
7272
],
7373
], null, $joinType)
7474
;

Checker/Catalog/Product/UrlKey/EmptyUrlKey.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ private function checkForEmptyUrlKeyAttributeValues(): array
7575
->addAttributeToFilter([
7676
[
7777
'attribute' => UrlKeyChecker::URL_KEY_ATTRIBUTE,
78-
'null' => true,
78+
'null' => true,
7979
],
8080
[
8181
'attribute' => UrlKeyChecker::URL_KEY_ATTRIBUTE,
82-
'eq' => '',
82+
'eq' => '',
8383
],
8484
], null, $joinType)
8585
;

Model/ResourceModel/Catalog/Category/UrlKeyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function createDataObject(array $arguments = []): DataObject
8585
foreach ($arguments as $key => $value) {
8686
$attribute = new AttributeValue([
8787
AttributeInterface::ATTRIBUTE_CODE => $key,
88-
AttributeInterface::VALUE => $value,
88+
AttributeInterface::VALUE => $value,
8989
]);
9090

9191
$attributes[] = $attribute;

Model/ResourceModel/Catalog/Category/UrlPathCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function createDataObject(array $arguments = []): DataObject
8585
foreach ($arguments as $key => $value) {
8686
$attribute = new AttributeValue([
8787
AttributeInterface::ATTRIBUTE_CODE => $key,
88-
AttributeInterface::VALUE => $value,
88+
AttributeInterface::VALUE => $value,
8989
]);
9090

9191
$attributes[] = $attribute;

Model/ResourceModel/Catalog/Product/UrlKeyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function createDataObject(array $arguments = []): DataObject
8585
foreach ($arguments as $key => $value) {
8686
$attribute = new AttributeValue([
8787
AttributeInterface::ATTRIBUTE_CODE => $key,
88-
AttributeInterface::VALUE => $value,
88+
AttributeInterface::VALUE => $value,
8989
]);
9090

9191
$attributes[] = $attribute;

Model/ResourceModel/Catalog/Product/UrlPathCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function createDataObject(array $arguments = []): DataObject
8585
foreach ($arguments as $key => $value) {
8686
$attribute = new AttributeValue([
8787
AttributeInterface::ATTRIBUTE_CODE => $key,
88-
AttributeInterface::VALUE => $value,
88+
AttributeInterface::VALUE => $value,
8989
]);
9090

9191
$attributes[] = $attribute;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require-dev": {
2424
"bitexpert/phpstan-magento": "^0.3.0",
2525
"ergebnis/composer-normalize": "^2.2",
26-
"friendsofphp/php-cs-fixer": "^2.16",
26+
"friendsofphp/php-cs-fixer": "^2.17",
2727
"magento/magento-coding-standard": "^5.0",
2828
"phpcompatibility/php-compatibility": "^9.2",
2929
"phpstan/extension-installer": "^1.0",

0 commit comments

Comments
 (0)