Skip to content

Commit 8cccafc

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feature/prod-clone-ask
# Conflicts: # app/code/core/Mage/Catalog/Model/Product.php
2 parents 9b040e6 + a0e0683 commit 8cccafc

File tree

1,559 files changed

+9647
-10386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,559 files changed

+9647
-10386
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,15 @@
17161716
"contributions": [
17171717
"code"
17181718
]
1719+
},
1720+
{
1721+
"login": "vernad",
1722+
"name": "vernad",
1723+
"avatar_url": "https://avatars.githubusercontent.com/u/51973447?v=4",
1724+
"profile": "https://github.com/vernad",
1725+
"contributions": [
1726+
"code"
1727+
]
17191728
}
17201729
],
17211730
"commitType": "docs"

.php-cs-fixer.dist.php

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,52 @@
1212
'logical_operators' => true,
1313
// RISKY: Replaces intval, floatval, doubleval, strval and boolval function calls with according type casting operator.
1414
'modernize_types_casting' => true,
15+
// There should not be empty PHPDoc blocks.
16+
'no_empty_phpdoc' => true,
1517
// PHP84: Adds or removes ? before single type declarations or |null at the end of union types when parameters have a default null value.
1618
'nullable_type_declaration_for_default_null_value' => true,
19+
// Operators - when multiline - must always be at the beginning or at the end of the line.
20+
'operator_linebreak' => true,
21+
// Sort union types and intersection types using configured order.
22+
'ordered_types' => true,
1723
// Calls to PHPUnit\Framework\TestCase static methods must all be of the same type, either $this->, self:: or static::
1824
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
25+
// PHPDoc annotation descriptions should not be a sentence.
26+
'phpdoc_annotation_without_dot' => true,
27+
// Docblocks should have the same indentation as the documented subject.
28+
'phpdoc_indent' => true,
29+
// Annotations in PHPDoc should be ordered in defined sequence.
30+
'phpdoc_order' => ['order' => ['param', 'return', 'throws', 'deprecated', 'see', 'SuppressWarnings']],
31+
// Order PHPDoc tags by value.
32+
'phpdoc_order_by_value' => ['annotations' => ['author', 'covers', 'group', 'method', 'throws', 'uses']],
33+
// Orders all @param annotations in DocBlocks according to method signature.
34+
'phpdoc_param_order' => true,
35+
// PHPDoc should start and end with content, excluding the very first and last line of the docblocks.
36+
'phpdoc_trim' => true,
37+
// Removes extra blank lines after summary and after description in PHPDoc.
38+
'phpdoc_trim_consecutive_blank_line_separation' => true,
39+
// Scalar types should always be written in the same form. int not integer, bool not boolean, float not real or double.
40+
'phpdoc_scalar' => true,
41+
// Single line @var PHPDoc should have proper spacing.
42+
'phpdoc_single_line_var_spacing' => true,
43+
// Fixes casing of PHPDoc tags.
44+
'phpdoc_tag_casing' => true,
45+
// Sorts PHPDoc types.
46+
'phpdoc_types_order' => true,
47+
// @var and @type annotations must have type and name in the correct order.
48+
'phpdoc_var_annotation_correct_order' => true,
49+
// @var and @type annotations of classy properties should not contain the name.
50+
'phpdoc_var_without_name' => true,
51+
// There MUST NOT be more than one property or constant declared per statement.
52+
'single_class_element_per_statement' => true,
1953
// Convert double quotes to single quotes for simple strings.
2054
'single_quote' => true,
2155
// Arguments lists, array destructuring lists, arrays that are multi-line, match-lines and parameters lists must have a trailing comma.
2256
// removed "match" and "parameters" for PHP7
2357
// see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8308
2458
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'array_destructuring', 'arrays']],
59+
// A single space or none should be around union type and intersection type operators.
60+
'types_spaces' => true,
2561
])
2662
->setFinder(
2763
PhpCsFixer\Finder::create()
@@ -30,7 +66,6 @@
3066
])
3167
->exclude([
3268
__DIR__ . '/shell/translations.php',
33-
__DIR__ . '/shell/update-copyright.php',
3469
])
3570
->name('*.php')
3671
->ignoreDotFiles(true)

0 commit comments

Comments
 (0)