@@ -44,42 +44,42 @@ |
||
44 | 44 | { |
45 | 45 | if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') { |
46 | 46 | $errors = array( |
47 | - 2 => 1, |
|
48 | - 3 => 1, |
|
49 | - 4 => 2, |
|
50 | - 5 => 1, |
|
51 | - 7 => 1, |
|
52 | - 11 => 1, |
|
53 | - 12 => 1, |
|
54 | - 13 => 1, |
|
55 | - 16 => 1, |
|
56 | - 36 => 1, |
|
57 | - 43 => 2, |
|
58 | - 48 => 1, |
|
59 | - 81 => 1, |
|
60 | - 82 => 2, |
|
61 | - 88 => 1, |
|
62 | - 102 => 2, |
|
63 | - 137 => 1, |
|
64 | - 141 => 2, |
|
65 | - 142 => 1, |
|
66 | - ); |
|
47 | + 2 => 1, |
|
48 | + 3 => 1, |
|
49 | + 4 => 2, |
|
50 | + 5 => 1, |
|
51 | + 7 => 1, |
|
52 | + 11 => 1, |
|
53 | + 12 => 1, |
|
54 | + 13 => 1, |
|
55 | + 16 => 1, |
|
56 | + 36 => 1, |
|
57 | + 43 => 2, |
|
58 | + 48 => 1, |
|
59 | + 81 => 1, |
|
60 | + 82 => 2, |
|
61 | + 88 => 1, |
|
62 | + 102 => 2, |
|
63 | + 137 => 1, |
|
64 | + 141 => 2, |
|
65 | + 142 => 1, |
|
66 | + ); |
|
67 | 67 | } else { |
68 | 68 | $errors = array( |
69 | - 2 => 1, |
|
70 | - 3 => 1, |
|
71 | - 4 => 2, |
|
72 | - 5 => 1, |
|
73 | - 7 => 1, |
|
74 | - 11 => 1, |
|
75 | - 12 => 1, |
|
76 | - 13 => 1, |
|
77 | - 16 => 1, |
|
78 | - 26 => 1, |
|
79 | - 36 => 1, |
|
80 | - 43 => 2, |
|
81 | - 48 => 1, |
|
82 | - ); |
|
69 | + 2 => 1, |
|
70 | + 3 => 1, |
|
71 | + 4 => 2, |
|
72 | + 5 => 1, |
|
73 | + 7 => 1, |
|
74 | + 11 => 1, |
|
75 | + 12 => 1, |
|
76 | + 13 => 1, |
|
77 | + 16 => 1, |
|
78 | + 26 => 1, |
|
79 | + 36 => 1, |
|
80 | + 43 => 2, |
|
81 | + 48 => 1, |
|
82 | + ); |
|
83 | 83 | }//end if |
84 | 84 | |
85 | 85 | return $errors; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return array<int, int> |
42 | 42 | */ |
43 | - public function getErrorList($testFile='MultiLineFunctionDeclarationUnitTest.inc') |
|
43 | + public function getErrorList($testFile = 'MultiLineFunctionDeclarationUnitTest.inc') |
|
44 | 44 | { |
45 | 45 | if ($testFile === 'MultiLineFunctionDeclarationUnitTest.inc') { |
46 | 46 | $errors = array( |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | function func1(); |
53 | 53 | |
54 | 54 | |
55 | - function func2() ; |
|
55 | + function func2(); |
|
56 | 56 | |
57 | 57 | |
58 | 58 | }//end interface |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | function recurseCreateTree( |
61 | 61 | array $flatList, |
62 | 62 | $markup, |
63 | - $lastOffset=0 |
|
63 | + $lastOffset = 0 |
|
64 | 64 | ) { |
65 | 65 | } |
66 | 66 | |
67 | 67 | |
68 | -function test ( ){} |
|
68 | +function test( ) {} |
|
69 | 69 | |
70 | 70 | function parent() {} |
71 | 71 | function self() {} |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -14,11 +14,11 @@ |
||
14 | 14 | : 'positive'); |
15 | 15 | |
16 | 16 | $args = array( |
17 | - '"'.$this->id.'"', |
|
18 | - '"'.$this->stepInfo['title'].'"', |
|
19 | - '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"', |
|
20 | - '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"', |
|
21 | - '"'.$this->stepInfo['title'].'"', |
|
17 | + '"'.$this->id.'"', |
|
18 | + '"'.$this->stepInfo['title'].'"', |
|
19 | + '"'.((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '').'"', |
|
20 | + '"'.(isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '').'"', |
|
21 | + '"'.$this->stepInfo['title'].'"', |
|
22 | 22 | ); |
23 | 23 | |
24 | 24 | echo (TRUE)?'Hello':'Bye'; |
@@ -2,12 +2,12 @@ discard block |
||
2 | 2 | |
3 | 3 | echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
4 | 4 | echo 'var is '.($var < 0 ? 'negative' : 'positive'); |
5 | -echo 'var is '.(($var < 0) ? 'negative' :'positive'); |
|
6 | -echo 'var is '.(($var < 0) ? 'negative': 'positive'); |
|
7 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
8 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
9 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
10 | -echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
5 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
6 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
7 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
8 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
9 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
10 | +echo 'var is '.(($var < 0) ? 'negative' : 'positive'); |
|
11 | 11 | |
12 | 12 | echo 'var is '.(($var < 0) |
13 | 13 | ? 'negative' |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | '"'.$this->stepInfo['title'].'"', |
22 | 22 | ); |
23 | 23 | |
24 | -echo (TRUE)?'Hello':'Bye'; |
|
24 | +echo (TRUE) ? 'Hello' : 'Bye'; |
|
25 | 25 | |
26 | 26 | $array = array( |
27 | 27 | 'one' => ($test == 1) ? true : false, |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | 'three' => (($test == 1) ? true : false) |
30 | 30 | ); |
31 | 31 | $var = ($test == 1) ? true : false; |
32 | -$var = (myFunc(1,2,3) == 1) ? true : false; |
|
32 | +$var = (myFunc(1, 2, 3) == 1) ? true : false; |
|
33 | 33 | |
34 | 34 | set('config', function() { |
35 | 35 | $foo = ($bar === "on") ? "1" : "2"; |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | 30 => 1, |
40 | 40 | 37 => 2, |
41 | 41 | 39 => 2, |
42 | - ); |
|
43 | - break; |
|
42 | + ); |
|
43 | + break; |
|
44 | 44 | case 'ForLoopDeclarationUnitTest.js': |
45 | 45 | return array( |
46 | 46 | 6 => 2, |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | 36 => 1, |
53 | 53 | 43 => 2, |
54 | 54 | 45 => 2, |
55 | - ); |
|
56 | - break; |
|
55 | + ); |
|
56 | + break; |
|
57 | 57 | default: |
58 | 58 | return array(); |
59 | 59 | break; |
@@ -28,35 +28,35 @@ |
||
28 | 28 | public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc') |
29 | 29 | { |
30 | 30 | switch ($testFile) { |
31 | - case 'ForLoopDeclarationUnitTest.inc': |
|
32 | - return array( |
|
33 | - 8 => 2, |
|
34 | - 11 => 2, |
|
35 | - 14 => 2, |
|
36 | - 17 => 2, |
|
37 | - 21 => 6, |
|
38 | - 27 => 1, |
|
39 | - 30 => 1, |
|
40 | - 37 => 2, |
|
41 | - 39 => 2, |
|
42 | - ); |
|
43 | - break; |
|
44 | - case 'ForLoopDeclarationUnitTest.js': |
|
45 | - return array( |
|
46 | - 6 => 2, |
|
47 | - 9 => 2, |
|
48 | - 12 => 2, |
|
49 | - 15 => 2, |
|
50 | - 19 => 6, |
|
51 | - 33 => 1, |
|
52 | - 36 => 1, |
|
53 | - 43 => 2, |
|
54 | - 45 => 2, |
|
55 | - ); |
|
56 | - break; |
|
57 | - default: |
|
58 | - return array(); |
|
59 | - break; |
|
31 | + case 'ForLoopDeclarationUnitTest.inc': |
|
32 | + return array( |
|
33 | + 8 => 2, |
|
34 | + 11 => 2, |
|
35 | + 14 => 2, |
|
36 | + 17 => 2, |
|
37 | + 21 => 6, |
|
38 | + 27 => 1, |
|
39 | + 30 => 1, |
|
40 | + 37 => 2, |
|
41 | + 39 => 2, |
|
42 | + ); |
|
43 | + break; |
|
44 | + case 'ForLoopDeclarationUnitTest.js': |
|
45 | + return array( |
|
46 | + 6 => 2, |
|
47 | + 9 => 2, |
|
48 | + 12 => 2, |
|
49 | + 15 => 2, |
|
50 | + 19 => 6, |
|
51 | + 33 => 1, |
|
52 | + 36 => 1, |
|
53 | + 43 => 2, |
|
54 | + 45 => 2, |
|
55 | + ); |
|
56 | + break; |
|
57 | + default: |
|
58 | + return array(); |
|
59 | + break; |
|
60 | 60 | }//end switch |
61 | 61 | |
62 | 62 | }//end getErrorList() |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return array<int, int> |
44 | 44 | */ |
45 | - public function getErrorList($testFile='ForLoopDeclarationUnitTest.inc') |
|
45 | + public function getErrorList($testFile = 'ForLoopDeclarationUnitTest.inc') |
|
46 | 46 | { |
47 | 47 | switch ($testFile) { |
48 | 48 | case 'ForLoopDeclarationUnitTest.inc': |
@@ -57,7 +57,7 @@ |
||
57 | 57 | 48 => 1, |
58 | 58 | 70 => 1, |
59 | 59 | 71 => 1, |
60 | - ); |
|
60 | + ); |
|
61 | 61 | |
62 | 62 | }//end getErrorList() |
63 | 63 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | // @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0 |
31 | 31 | |
32 | 32 | foreach ([ |
33 | - 'foo' => 'bar', |
|
34 | - 'foobaz' => 'bazzy', |
|
35 | - ] as $key => $value) { |
|
33 | + 'foo' => 'bar', |
|
34 | + 'foobaz' => 'bazzy', |
|
35 | + ] as $key => $value) { |
|
36 | 36 | } |
37 | 37 | \ No newline at end of file |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | } |
6 | 6 | |
7 | 7 | // Invalid. |
8 | -foreach ( $something as $blah => $that ) { |
|
8 | +foreach ($something as $blah => $that) { |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | foreach ($something as $blah => $that) { |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | // The works. |
21 | -foreach ( $something aS $blah => $that ) { |
|
21 | +foreach ($something aS $blah => $that) { |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | // @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 1 |
25 | 25 | // @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 1 |
26 | 26 | foreach ($something as $blah => $that) {} |
27 | -foreach ( $something as $blah => $that ) {} |
|
28 | -foreach ( $something as $blah => $that ) {} |
|
27 | +foreach ($something as $blah => $that) {} |
|
28 | +foreach ($something as $blah => $that) {} |
|
29 | 29 | // @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesAfterOpen 0 |
30 | 30 | // @codingStandardsChangeSetting Squiz.ControlStructures.ForEachLoopDeclaration requiredSpacesBeforeClose 0 |
31 | 31 |