File tree 5 files changed +47
-1
lines changed
5 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 5
5
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Classes/ClassConstantVisibility.php | tests/errorNumber.sh 1
6
6
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Classes/UnusedPrivateElements.php | tests/errorNumber.sh 2
7
7
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Classes/PropertySpacing.php | tests/errorNumber.sh 2
8
+ ./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Classes/MethodSpacingSniff.php | tests/errorNumber.sh 2
8
9
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Files/LineEndings.php | tests/errorNumber.sh 1
9
10
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Namespaces/UnusedUses.php | tests/errorNumber.sh 1
10
11
./vendor/bin/phpcs --standard=src/PeckaCodingStandard/ruleset.xml tests/Failure/Formatting/SpaceAfterCast.php | tests/errorNumber.sh 2
Original file line number Diff line number Diff line change 4
4
"require" : {
5
5
"php" : " 7.*" ,
6
6
"squizlabs/php_codesniffer" : " 3.*" ,
7
- "slevomat/coding-standard" : " 6.1 .*" ,
7
+ "slevomat/coding-standard" : " 6.3 .*" ,
8
8
"escapestudios/symfony2-coding-standard" : " 3.*"
9
9
},
10
10
"license" : " MIT" ,
Original file line number Diff line number Diff line change 19
19
<property name =" maxLinesCountBeforeWithoutComment" value =" 1" />
20
20
</properties >
21
21
</rule >
22
+ <rule ref =" SlevomatCodingStandard.Classes.MethodSpacing" >
23
+ <properties >
24
+ <property name =" minLinesCount" value =" 2" />
25
+ <property name =" maxLinesCount" value =" 2" />
26
+ </properties >
27
+ </rule >
22
28
23
29
<!-- Exceptions -->
24
30
<rule ref =" SlevomatCodingStandard.Exceptions.DeadCatch" />
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace PdTests \Failure \Classes ;
4
+
5
+ class MethodSpacingSniff
6
+ {
7
+
8
+ public function hello (): void
9
+ {
10
+ }
11
+
12
+ public function hello2 (): void
13
+ {
14
+ }
15
+
16
+
17
+
18
+ public function hello3 (): void
19
+ {
20
+ }
21
+
22
+ }
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace PdTests \Success \Classes ;
4
+
5
+ class MethodSpacingSniff
6
+ {
7
+
8
+ public function hello (): void
9
+ {
10
+ }
11
+
12
+
13
+ public function hello2 (): void
14
+ {
15
+ }
16
+
17
+ }
You can’t perform that action at this time.
0 commit comments