Skip to content

Commit 4c3f90c

Browse files
authored
Merge pull request #8386 from paulbalandan/coding-standard
refactor: remove overrides for coding-standard v1.7.12
2 parents e5e2fda + 08043b2 commit 4c3f90c

11 files changed

Lines changed: 453 additions & 540 deletions

.php-cs-fixer.dist.php

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -43,56 +43,7 @@
4343
__DIR__ . '/spark',
4444
]);
4545

46-
$overrides = [
47-
'php_unit_data_provider_name' => [
48-
'prefix' => 'provide',
49-
'suffix' => '',
50-
],
51-
'php_unit_data_provider_static' => true,
52-
'php_unit_data_provider_return_type' => true,
53-
'no_extra_blank_lines' => [
54-
'tokens' => [
55-
'attribute',
56-
'break',
57-
'case',
58-
'continue',
59-
'curly_brace_block',
60-
'default',
61-
'extra',
62-
'parenthesis_brace_block',
63-
'return',
64-
'square_brace_block',
65-
'switch',
66-
'throw',
67-
'use',
68-
],
69-
],
70-
'fully_qualified_strict_types' => [
71-
'import_symbols' => false,
72-
'leading_backslash_in_global_namespace' => false,
73-
'phpdoc_tags' => [
74-
'param',
75-
'phpstan-param',
76-
'phpstan-property',
77-
'phpstan-property-read',
78-
'phpstan-property-write',
79-
'phpstan-return',
80-
'phpstan-var',
81-
'property',
82-
'property-read',
83-
'property-write',
84-
'psalm-param',
85-
'psalm-property',
86-
'psalm-property-read',
87-
'psalm-property-write',
88-
'psalm-return',
89-
'psalm-var',
90-
'return',
91-
'throws',
92-
'var',
93-
],
94-
],
95-
];
46+
$overrides = [];
9647

9748
$options = [
9849
'cacheFile' => 'build/.php-cs-fixer.cache',

.php-cs-fixer.no-header.php

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,7 @@
2929
__DIR__ . '/admin/starter/builds',
3030
]);
3131

32-
$overrides = [
33-
'php_unit_data_provider_name' => [
34-
'prefix' => 'provide',
35-
'suffix' => '',
36-
],
37-
'php_unit_data_provider_static' => true,
38-
'php_unit_data_provider_return_type' => true,
39-
'no_extra_blank_lines' => [
40-
'tokens' => [
41-
'attribute',
42-
'break',
43-
'case',
44-
'continue',
45-
'curly_brace_block',
46-
'default',
47-
'extra',
48-
'parenthesis_brace_block',
49-
'return',
50-
'square_brace_block',
51-
'switch',
52-
'throw',
53-
'use',
54-
],
55-
],
56-
];
32+
$overrides = [];
5733

5834
$options = [
5935
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',

.php-cs-fixer.user-guide.php

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,33 +31,10 @@
3131
]);
3232

3333
$overrides = [
34-
'echo_tag_syntax' => false,
35-
'php_unit_internal_class' => false,
36-
'no_unused_imports' => false,
37-
'class_attributes_separation' => false,
38-
'php_unit_data_provider_return_type' => true,
39-
'no_extra_blank_lines' => [
40-
'tokens' => [
41-
'attribute',
42-
'break',
43-
'case',
44-
'continue',
45-
'curly_brace_block',
46-
'default',
47-
'extra',
48-
'parenthesis_brace_block',
49-
'return',
50-
'square_brace_block',
51-
'switch',
52-
'throw',
53-
'use',
54-
],
55-
],
56-
'php_unit_data_provider_static' => true,
57-
'php_unit_data_provider_name' => [
58-
'prefix' => 'provide',
59-
'suffix' => '',
60-
],
34+
'echo_tag_syntax' => false,
35+
'php_unit_internal_class' => false,
36+
'no_unused_imports' => false,
37+
'class_attributes_separation' => false,
6138
];
6239

6340
$options = [

admin/framework/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"psr/log": "^1.1"
1919
},
2020
"require-dev": {
21-
"codeigniter/coding-standard": "^1.5",
21+
"codeigniter/coding-standard": "^1.7",
2222
"fakerphp/faker": "^1.9",
2323
"friendsofphp/php-cs-fixer": "^3.43",
2424
"kint-php/kint": "^5.0.4",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"psr/log": "^1.1"
1919
},
2020
"require-dev": {
21-
"codeigniter/coding-standard": "^1.5",
21+
"codeigniter/coding-standard": "^1.7",
2222
"codeigniter/phpstan-codeigniter": "^1.4",
2323
"ergebnis/composer-normalize": "^2.28",
2424
"fakerphp/faker": "^1.9",

tests/system/AutoReview/FrameworkCodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ public function testEachTestClassHasCorrectGroupAnnotation(string $class): void
7373
));
7474
}
7575

76-
public function provideEachTestClassHasCorrectGroupAnnotation(): iterable
76+
public static function provideEachTestClassHasCorrectGroupAnnotation(): iterable
7777
{
78-
foreach ($this->getTestClasses() as $class) {
78+
foreach (self::getTestClasses() as $class) {
7979
yield $class => [$class];
8080
}
8181
}
8282

83-
private function getTestClasses(): array
83+
private static function getTestClasses(): array
8484
{
8585
if (self::$testClasses !== []) {
8686
return self::$testClasses;

tests/system/HTTP/SiteURITest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function testConstructor(
6060
$this->assertSame($expectedTotalSegments, $uri->getTotalSegments());
6161
}
6262

63-
public function provideConstructor(): iterable
63+
public static function provideConstructor(): iterable
6464
{
65-
return array_merge($this->provideSetPath(), $this->provideRelativePathWithQueryOrFragment());
65+
return array_merge(self::provideSetPath(), self::provideRelativePathWithQueryOrFragment());
6666
}
6767

6868
public static function provideSetPath(): iterable
@@ -214,7 +214,7 @@ public static function provideSetPath(): iterable
214214
];
215215
}
216216

217-
public function provideRelativePathWithQueryOrFragment()
217+
public static function provideRelativePathWithQueryOrFragment(): iterable
218218
{
219219
return [
220220
'one/two?foo=1&bar=2' => [

0 commit comments

Comments
 (0)