File tree 6 files changed +24
-7
lines changed 6 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 27
27
},
28
28
"require" : {
29
29
"php" : " ^7.1" ,
30
- "dealerdirect/phpcodesniffer-composer-installer" : " ^0.4.4 " ,
30
+ "dealerdirect/phpcodesniffer-composer-installer" : " ^0.5.0 " ,
31
31
"slevomat/coding-standard" : " ^4.8.0" ,
32
32
"squizlabs/php_codesniffer" : " ^3.3.2"
33
33
},
Original file line number Diff line number Diff line change 369
369
<exclude name =" Squiz.Arrays.ArrayDeclaration.ValueNotAligned" />
370
370
<!-- Checked by SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma -->
371
371
<exclude name =" Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast" />
372
+ <exclude name =" Squiz.Arrays.ArrayDeclaration.NoComma" />
372
373
</rule >
373
374
<!-- Forbid class being in a file with different name -->
374
375
<rule ref =" Squiz.Classes.ClassFileName" />
Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ tests/input/return_type_on_closures.php 21 0
23
23
tests/input/return_type_on_methods.php 17 0
24
24
tests/input/semicolon_spacing.php 3 0
25
25
tests/input/static-closures.php 1 0
26
- tests/input/test-case.php 6 0
26
+ tests/input/test-case.php 8 0
27
+ tests/input/trailing_comma_on_array.php 1 0
27
28
tests/input/traits-uses.php 10 0
28
29
tests/input/UnusedVariables.php 1 0
29
30
tests/input/useless-semicolon.php 2 0
30
31
----------------------------------------------------------------------
31
- A TOTAL OF 203 ERRORS AND 0 WARNINGS WERE FOUND IN 24 FILES
32
+ A TOTAL OF 206 ERRORS AND 0 WARNINGS WERE FOUND IN 25 FILES
32
33
----------------------------------------------------------------------
33
- PHPCBF CAN FIX 173 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
34
+ PHPCBF CAN FIX 176 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
34
35
----------------------------------------------------------------------
35
36
36
37
Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ public function createDependencies() : void
27
27
}
28
28
29
29
/**
30
- * @test
30
+ * @uses MyClass::__construct
31
31
*
32
+ * @test
32
33
* @covers MyClass::test
33
- *
34
- * @uses MyClass::__construct
35
34
*/
36
35
public function methodShouldDoStuff () : void
37
36
{
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ $ array = [
6
+ 'key1 ' => 'value ' ,
7
+ 'key2 ' => 'value ' ,
8
+ ];
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ $ array = [
6
+ 'key1 ' => 'value ' ,
7
+ 'key2 ' => 'value '
8
+ ];
You can’t perform that action at this time.
0 commit comments