@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -25,8 +24,7 @@ discard block |
||
25 | 24 | * |
26 | 25 | * @return array<int, int> |
27 | 26 | */ |
28 | - public function getErrorList($testFile='IncrementDecrementSpacingUnitTest.inc') |
|
29 | - { |
|
27 | + public function getErrorList($testFile='IncrementDecrementSpacingUnitTest.inc') { |
|
30 | 28 | switch ($testFile) { |
31 | 29 | case 'IncrementDecrementSpacingUnitTest.inc': |
32 | 30 | case 'IncrementDecrementSpacingUnitTest.js': |
@@ -56,8 +54,7 @@ discard block |
||
56 | 54 | * |
57 | 55 | * @return array<int, int> |
58 | 56 | */ |
59 | - public function getWarningList() |
|
60 | - { |
|
57 | + public function getWarningList() { |
|
61 | 58 | return []; |
62 | 59 | |
63 | 60 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class DisallowTabIndentUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class DisallowTabIndentUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return void |
25 | 24 | */ |
26 | - public function setCliValues($testFile, $config) |
|
27 | - { |
|
25 | + public function setCliValues($testFile, $config) { |
|
28 | 26 | $config->tabWidth = 4; |
29 | 27 | |
30 | 28 | }//end setCliValues() |
@@ -40,8 +38,7 @@ discard block |
||
40 | 38 | * |
41 | 39 | * @return array<int, int> |
42 | 40 | */ |
43 | - public function getErrorList($testFile='DisallowTabIndentUnitTest.inc') |
|
44 | - { |
|
41 | + public function getErrorList($testFile='DisallowTabIndentUnitTest.inc') { |
|
45 | 42 | switch ($testFile) { |
46 | 43 | case 'DisallowTabIndentUnitTest.inc': |
47 | 44 | return [ |
@@ -113,8 +110,7 @@ discard block |
||
113 | 110 | * |
114 | 111 | * @return array<int, int> |
115 | 112 | */ |
116 | - public function getWarningList() |
|
117 | - { |
|
113 | + public function getWarningList() { |
|
118 | 114 | return []; |
119 | 115 | |
120 | 116 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class ArrayIndentUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class ArrayIndentUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array<int, int> |
25 | 24 | */ |
26 | - public function getErrorList() |
|
27 | - { |
|
25 | + public function getErrorList() { |
|
28 | 26 | return [ |
29 | 27 | 14 => 1, |
30 | 28 | 15 => 1, |
@@ -50,8 +48,7 @@ discard block |
||
50 | 48 | * |
51 | 49 | * @return array<int, int> |
52 | 50 | */ |
53 | - public function getWarningList() |
|
54 | - { |
|
51 | + public function getWarningList() { |
|
55 | 52 | return []; |
56 | 53 | |
57 | 54 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -25,8 +24,7 @@ discard block |
||
25 | 24 | * |
26 | 25 | * @return array<int, int> |
27 | 26 | */ |
28 | - public function getErrorList($testFile='') |
|
29 | - { |
|
27 | + public function getErrorList($testFile='') { |
|
30 | 28 | switch ($testFile) { |
31 | 29 | case 'DisallowLongArraySyntaxUnitTest.1.inc': |
32 | 30 | return [ |
@@ -57,8 +55,7 @@ discard block |
||
57 | 55 | * |
58 | 56 | * @return array<int, int> |
59 | 57 | */ |
60 | - public function getWarningList() |
|
61 | - { |
|
58 | + public function getWarningList() { |
|
62 | 59 | return []; |
63 | 60 | |
64 | 61 | }//end getWarningList() |
@@ -4,14 +4,7 @@ |
||
4 | 4 | // The following function has a simulated git conflict for testing. |
5 | 5 | // This is not a merge conflict - it is a valid test case to test handling of arrays without associated closer. |
6 | 6 | // Please do not remove. |
7 | -function test() |
|
8 | - { |
|
7 | +function test() { |
|
9 | 8 | $arr = array( |
10 | 9 | 'a' => 'a', |
11 | 10 | <<<<<<< HEAD |
12 | - 'b' => 'b' |
|
13 | -======= |
|
14 | - 'c' => 'c' |
|
15 | ->>>>>>> master |
|
16 | - ); |
|
17 | - } |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array<int, int> |
25 | 24 | */ |
26 | - public function getErrorList() |
|
27 | - { |
|
25 | + public function getErrorList() { |
|
28 | 26 | return [ |
29 | 27 | 3 => 1, |
30 | 28 | 5 => 1, |
@@ -43,8 +41,7 @@ discard block |
||
43 | 41 | * |
44 | 42 | * @return array<int, int> |
45 | 43 | */ |
46 | - public function getWarningList() |
|
47 | - { |
|
44 | + public function getWarningList() { |
|
48 | 45 | return []; |
49 | 46 | |
50 | 47 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array<int, int> |
25 | 24 | */ |
26 | - public function getErrorList() |
|
27 | - { |
|
25 | + public function getErrorList() { |
|
28 | 26 | return [ |
29 | 27 | 9 => 1, |
30 | 28 | 12 => 1, |
@@ -45,8 +43,7 @@ discard block |
||
45 | 43 | * |
46 | 44 | * @return array<int, int> |
47 | 45 | */ |
48 | - public function getWarningList() |
|
49 | - { |
|
46 | + public function getWarningList() { |
|
50 | 47 | return []; |
51 | 48 | |
52 | 49 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array<int, int> |
25 | 24 | */ |
26 | - public function getErrorList() |
|
27 | - { |
|
25 | + public function getErrorList() { |
|
28 | 26 | return [ |
29 | 27 | 4 => 1, |
30 | 28 | 13 => 1, |
@@ -71,8 +69,7 @@ discard block |
||
71 | 69 | * |
72 | 70 | * @return array<int, int> |
73 | 71 | */ |
74 | - public function getWarningList() |
|
75 | - { |
|
72 | + public function getWarningList() { |
|
76 | 73 | return []; |
77 | 74 | |
78 | 75 | }//end getWarningList() |
@@ -11,8 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; |
13 | 13 | |
14 | -class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest |
|
15 | -{ |
|
14 | +class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest { |
|
16 | 15 | |
17 | 16 | |
18 | 17 | /** |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return array<int, int> |
25 | 24 | */ |
26 | - public function getErrorList() |
|
27 | - { |
|
25 | + public function getErrorList() { |
|
28 | 26 | return [ |
29 | 27 | 5 => 1, |
30 | 28 | 6 => 1, |
@@ -66,8 +64,7 @@ discard block |
||
66 | 64 | * |
67 | 65 | * @return array<int, int> |
68 | 66 | */ |
69 | - public function getWarningList() |
|
70 | - { |
|
67 | + public function getWarningList() { |
|
71 | 68 | return []; |
72 | 69 | |
73 | 70 | }//end getWarningList() |