File tree Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Expand file tree Collapse file tree 6 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 2727 },
2828 "require" : {
2929 "php" : " ^7.1" ,
30- "dealerdirect/phpcodesniffer-composer-installer" : " ^0.4.4 " ,
30+ "dealerdirect/phpcodesniffer-composer-installer" : " ^0.5.0 " ,
3131 "slevomat/coding-standard" : " ^4.8.0" ,
3232 "squizlabs/php_codesniffer" : " ^3.3.2"
3333 },
Original file line number Diff line number Diff line change 369369 <exclude name =" Squiz.Arrays.ArrayDeclaration.ValueNotAligned" />
370370 <!-- Checked by SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma -->
371371 <exclude name =" Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast" />
372+ <exclude name =" Squiz.Arrays.ArrayDeclaration.NoComma" />
372373 </rule >
373374 <!-- Forbid class being in a file with different name -->
374375 <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
2323tests/input/return_type_on_methods.php 17 0
2424tests/input/semicolon_spacing.php 3 0
2525tests/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
2728tests/input/traits-uses.php 10 0
2829tests/input/UnusedVariables.php 1 0
2930tests/input/useless-semicolon.php 2 0
3031----------------------------------------------------------------------
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
3233----------------------------------------------------------------------
33- PHPCBF CAN FIX 173 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
34+ PHPCBF CAN FIX 176 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
3435----------------------------------------------------------------------
3536
3637
Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ public function createDependencies() : void
2727 }
2828
2929 /**
30- * @test
30+ * @uses MyClass::__construct
3131 *
32+ * @test
3233 * @covers MyClass::test
33- *
34- * @uses MyClass::__construct
3534 */
3635 public function methodShouldDoStuff () : void
3736 {
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