@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | // Space before brace. |
23 | 23 | function myFunction() |
24 | - { |
|
24 | + { |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | class myClass() |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | // Space before brace. |
54 | 54 | function myFunction() |
55 | - { |
|
55 | + { |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | // Space before brace. |
89 | 89 | function myFunction($variable1, $variable2, |
90 | 90 | $variable3, $variable4) |
91 | - { |
|
91 | + { |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | class myClass() |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | // Space before brace. |
126 | 126 | function myFunction($variable1, $variable2, |
127 | 127 | $variable3, $variable4) |
128 | - { |
|
128 | + { |
|
129 | 129 | } |
130 | 130 | } |
131 | 131 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | } |
11 | 11 | |
12 | 12 | // Too many spaces. |
13 | -function myFunction() { |
|
13 | +function myFunction() { |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | // Too many newlines. |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | // Too many spaces. |
44 | - function myFunction() { |
|
44 | + function myFunction() { |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | // Too many newlines. |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | // Too many spaces. |
77 | 77 | function myFunction($variable1, $variable2, |
78 | - $variable3, $variable4) { |
|
78 | + $variable3, $variable4) { |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | // Too many newlines. |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | // Too many spaces. |
114 | 114 | function myFunction($variable1, $variable2, |
115 | - $variable3, $variable4) { |
|
115 | + $variable3, $variable4) { |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | // Too many newlines. |
@@ -161,25 +161,25 @@ discard block |
||
161 | 161 | |
162 | 162 | // @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 1 |
163 | 163 | |
164 | -$closureWithArgs = function ($arg1, $arg2) { |
|
164 | +$closureWithArgs = function($arg1, $arg2) { |
|
165 | 165 | // body |
166 | 166 | }; |
167 | 167 | |
168 | -$closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) { |
|
168 | +$closureWithArgsAndVars = function($arg1, $arg2) use ($var1, $var2) { |
|
169 | 169 | // body |
170 | 170 | }; |
171 | 171 | |
172 | -$test = function ($param) use ($result) { |
|
172 | +$test = function($param) use ($result) { |
|
173 | 173 | return null; |
174 | 174 | } |
175 | 175 | |
176 | -$test = function ($param) use ($result) : Something { |
|
176 | +$test = function($param) use ($result) : Something { |
|
177 | 177 | return null; |
178 | 178 | }; |
179 | 179 | |
180 | 180 | // @codingStandardsChangeSetting Generic.Functions.OpeningFunctionBraceBsdAllman checkClosures 0 |
181 | 181 | |
182 | -$closureWithArgs = function ($arg1, $arg2) { |
|
182 | +$closureWithArgs = function($arg1, $arg2) { |
|
183 | 183 | // body |
184 | 184 | }; |
185 | 185 |
@@ -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 |
@@ -13,13 +13,13 @@ |
||
13 | 13 | $result = myFunction($arg1 , $arg2=array()); |
14 | 14 | |
15 | 15 | $result = myFunction($arg1, |
16 | - $arg2 = array(), |
|
17 | - $arg3, |
|
18 | - $arg4, |
|
19 | - $arg5); |
|
16 | + $arg2 = array(), |
|
17 | + $arg3, |
|
18 | + $arg4, |
|
19 | + $arg5); |
|
20 | 20 | |
21 | 21 | throw new Exception("This is some massive string for a message", |
22 | - $cause); |
|
22 | + $cause); |
|
23 | 23 | |
24 | 24 | // Function definitions are ignored |
25 | 25 | function myFunction($arg1,$arg2) |
@@ -2,15 +2,15 @@ discard block |
||
2 | 2 | |
3 | 3 | $result = myFunction(); |
4 | 4 | $result = myFunction($arg1, $arg2); |
5 | -$result = myFunction($arg1,$arg2); |
|
6 | -$result = myFunction($arg1 , $arg2); |
|
7 | -$result = myFunction($arg1 , $arg2); |
|
8 | -$result = myFunction($arg1, $arg2, $arg3,$arg4, $arg5); |
|
5 | +$result = myFunction($arg1, $arg2); |
|
6 | +$result = myFunction($arg1, $arg2); |
|
7 | +$result = myFunction($arg1, $arg2); |
|
8 | +$result = myFunction($arg1, $arg2, $arg3, $arg4, $arg5); |
|
9 | 9 | $result = myFunction($arg1, $arg2, $arg3, $arg4, $arg5); |
10 | 10 | $result = myFunction($arg1, $arg2 = array()); |
11 | -$result = myFunction($arg1 , $arg2 =array()); |
|
12 | -$result = myFunction($arg1 , $arg2= array()); |
|
13 | -$result = myFunction($arg1 , $arg2=array()); |
|
11 | +$result = myFunction($arg1, $arg2 = array()); |
|
12 | +$result = myFunction($arg1, $arg2 = array()); |
|
13 | +$result = myFunction($arg1, $arg2 = array()); |
|
14 | 14 | |
15 | 15 | $result = myFunction($arg1, |
16 | 16 | $arg2 = array(), |
@@ -22,28 +22,28 @@ discard block |
||
22 | 22 | $cause); |
23 | 23 | |
24 | 24 | // Function definitions are ignored |
25 | -function myFunction($arg1,$arg2) |
|
25 | +function myFunction($arg1, $arg2) |
|
26 | 26 | { |
27 | 27 | } |
28 | 28 | |
29 | -function myFunction ($arg1,$arg2) |
|
29 | +function myFunction($arg1, $arg2) |
|
30 | 30 | { |
31 | 31 | } |
32 | 32 | |
33 | -function myFunction($arg1=1,$arg2=2) |
|
33 | +function myFunction($arg1 = 1, $arg2 = 2) |
|
34 | 34 | { |
35 | 35 | } |
36 | 36 | |
37 | 37 | |
38 | -function myFunction($arg1 = 1,$arg2 = 2) |
|
38 | +function myFunction($arg1 = 1, $arg2 = 2) |
|
39 | 39 | { |
40 | 40 | } |
41 | 41 | |
42 | -$key = array_search($this->getArray($one, $two,$three),$this->arrayMap); |
|
43 | -$this->error($obj->getCode(),$obj->getMessage(),$obj->getFile(),$obj->getLine()); |
|
42 | +$key = array_search($this->getArray($one, $two, $three), $this->arrayMap); |
|
43 | +$this->error($obj->getCode(), $obj->getMessage(), $obj->getFile(), $obj->getLine()); |
|
44 | 44 | |
45 | -make_foo($string /*the string*/ , true /*test*/); |
|
46 | -make_foo($string/*the string*/ , /*test*/ true); |
|
45 | +make_foo($string /*the string*/, true /*test*/); |
|
46 | +make_foo($string/*the string*/, /*test*/ true); |
|
47 | 47 | make_foo($string /*the string*/, /*test*/ true); |
48 | 48 | |
49 | 49 | class MyClass { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | // Function definition, not function call, so should be ignored |
56 | -function &myFunction($arg1=1,$arg2=2) |
|
56 | +function &myFunction($arg1 = 1, $arg2 = 2) |
|
57 | 57 | { |
58 | 58 | } |
59 | 59 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $foo, |
62 | 62 | $bar, |
63 | 63 | function($a, $b) { |
64 | - $foo='bar'; |
|
64 | + $foo = 'bar'; |
|
65 | 65 | return $foo; |
66 | 66 | } |
67 | 67 | ); |
@@ -84,12 +84,12 @@ discard block |
||
84 | 84 | THEN |
85 | 85 | ); |
86 | 86 | |
87 | -if (in_array($arg1, ['foo','bar'])) {} |
|
88 | -if (in_array($arg1, array('foo','bar'))) {} |
|
87 | +if (in_array($arg1, ['foo', 'bar'])) {} |
|
88 | +if (in_array($arg1, array('foo', 'bar'))) {} |
|
89 | 89 | |
90 | 90 | $b = foo( |
91 | 91 | "1", // this is a comment |
92 | - "2", // this is a comment |
|
93 | - "3",// this is a comment |
|
92 | + "2", // this is a comment |
|
93 | + "3", // this is a comment |
|
94 | 94 | "4" |
95 | 95 | ); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | myclass::myfunc(&$myvar); |
16 | 16 | myclass::myfunc($myvar); |
17 | 17 | |
18 | -while(testfunc($var1, &$var2, $var3, &$var4) === false) { |
|
18 | +while (testfunc($var1, &$var2, $var3, &$var4) === false) { |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | sprintf("0%o", 0777 & $p); |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | if (is_array($foo = &$this->bar())) { |
26 | 26 | } |
27 | 27 | |
28 | -Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] ); |
|
28 | +Hooks::run('SecondaryDataUpdates', [$title, $old, $recursive, $parserOutput, &$updates]); |
|
29 | 29 | |
30 | 30 | $foo = Bar(&$fooBar); |
31 | 31 | |
32 | -myfunc($myvar&$myvar); |
|
33 | -myfunc($myvar[0]&$myvar); |
|
32 | +myfunc($myvar & $myvar); |
|
33 | +myfunc($myvar[0] & $myvar); |
@@ -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 |
@@ -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 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } while ($something); |
22 | 22 | |
23 | 23 | if(true) |
24 | - $someObject->{$name}; |
|
24 | + $someObject->{$name}; |
|
25 | 25 | |
26 | 26 | if (true) : |
27 | 27 | $foo = true; |
@@ -109,11 +109,11 @@ |
||
109 | 109 | switch($response = \Bar::baz('bat', function ($foo) { |
110 | 110 | return 'bar'; |
111 | 111 | })) { |
112 | - case 1: |
|
113 | - return 'test'; |
|
112 | + case 1: |
|
113 | + return 'test'; |
|
114 | 114 | |
115 | - case 2: |
|
116 | - return 'other'; |
|
115 | + case 2: |
|
116 | + return 'other'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | $stuff = [1,2,3]; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $i--; |
21 | 21 | } while ($something); |
22 | 22 | |
23 | -if(true) |
|
23 | +if (true) |
|
24 | 24 | $someObject->{$name}; |
25 | 25 | |
26 | 26 | if (true) : |
@@ -60,16 +60,16 @@ discard block |
||
60 | 60 | function test() |
61 | 61 | { |
62 | 62 | if ($a) |
63 | - $a.=' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : '')); |
|
63 | + $a .= ' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : '')); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ($a) |
67 | 67 | foreach ($b as $c) { |
68 | 68 | if ($d) { |
69 | - $e=$f; |
|
70 | - $g=$h; |
|
71 | - } elseif ($i==0) { |
|
72 | - $j=$k; |
|
69 | + $e = $f; |
|
70 | + $g = $h; |
|
71 | + } elseif ($i == 0) { |
|
72 | + $j = $k; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } else { |
107 | 107 | } |
108 | 108 | |
109 | -switch($response = \Bar::baz('bat', function ($foo) { |
|
109 | +switch ($response = \Bar::baz('bat', function($foo) { |
|
110 | 110 | return 'bar'; |
111 | 111 | })) { |
112 | 112 | case 1: |
@@ -116,22 +116,22 @@ discard block |
||
116 | 116 | return 'other'; |
117 | 117 | } |
118 | 118 | |
119 | -$stuff = [1,2,3]; |
|
120 | -foreach($stuff as $num) |
|
121 | - if ($num %2 ) { |
|
119 | +$stuff = [1, 2, 3]; |
|
120 | +foreach ($stuff as $num) |
|
121 | + if ($num % 2) { |
|
122 | 122 | echo "even"; |
123 | 123 | } else { |
124 | 124 | echo "odd"; |
125 | 125 | } |
126 | 126 | |
127 | 127 | $i = 0; |
128 | -foreach($stuff as $num) |
|
128 | +foreach ($stuff as $num) |
|
129 | 129 | do { |
130 | 130 | echo $i; |
131 | 131 | $i++; |
132 | 132 | } while ($i < 5); |
133 | 133 | |
134 | -foreach($stuff as $num) |
|
134 | +foreach ($stuff as $num) |
|
135 | 135 | if (true) { |
136 | 136 | echo "true1\n"; |
137 | 137 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | foreach ($sql as $s) |
159 | - if (!$this->execute) echo "<pre>",$s.";\n</pre>"; |
|
159 | + if (!$this->execute) echo "<pre>", $s.";\n</pre>"; |
|
160 | 160 | else { |
161 | 161 | $ok = $this->connDest->Execute($s); |
162 | 162 | if (!$ok) |
@@ -1,27 +1,40 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if ($something) echo 'hello'; |
|
3 | +if ($something) { |
|
4 | + echo 'hello'; |
|
5 | +} |
|
4 | 6 | |
5 | 7 | if ($something) { |
6 | 8 | echo 'hello'; |
7 | -} else echo 'hi'; |
|
9 | +} else { |
|
10 | + echo 'hi'; |
|
11 | +} |
|
8 | 12 | |
9 | 13 | if ($something) { |
10 | 14 | echo 'hello'; |
11 | -} else if ($else) echo 'hi'; |
|
15 | +} else if ($else) { |
|
16 | + echo 'hi'; |
|
17 | +} |
|
12 | 18 | |
13 | -foreach ($something as $thing) echo 'hello'; |
|
19 | +foreach ($something as $thing) { |
|
20 | + echo 'hello'; |
|
21 | +} |
|
14 | 22 | |
15 | -for ($i; $i > 0; $i--) echo 'hello'; |
|
23 | +for ($i; $i > 0; $i--) { |
|
24 | + echo 'hello'; |
|
25 | +} |
|
16 | 26 | |
17 | -while ($something) echo 'hello'; |
|
27 | +while ($something) { |
|
28 | + echo 'hello'; |
|
29 | +} |
|
18 | 30 | |
19 | 31 | do { |
20 | 32 | $i--; |
21 | 33 | } while ($something); |
22 | 34 | |
23 | -if(true) |
|
35 | +if(true) { |
|
24 | 36 | $someObject->{$name}; |
37 | +} |
|
25 | 38 | |
26 | 39 | if (true) : |
27 | 40 | $foo = true; |
@@ -42,31 +55,38 @@ discard block |
||
42 | 55 | while (!$this->readLine($tokens, $tag)); |
43 | 56 | while (!$this->readLine($tokens, $tag)); //skip to end of file |
44 | 57 | |
45 | -foreach ($cookies as $cookie) |
|
58 | +foreach ($cookies as $cookie) { |
|
46 | 59 | if ($cookie->match($uri, $matchSessionCookies, $now)) |
47 | 60 | $ret[] = $cookie; |
61 | +} |
|
48 | 62 | |
49 | -foreach ($stringParade as $hit) |
|
50 | - $hitParade[] = $hit + 0; //cast to integer |
|
63 | +foreach ($stringParade as $hit) { |
|
64 | + $hitParade[] = $hit + 0; |
|
65 | +} |
|
66 | +//cast to integer |
|
51 | 67 | |
52 | 68 | if ($foo) : |
53 | 69 | echo 'true'; |
54 | 70 | elseif ($something) : |
55 | 71 | echo 'foo'; |
56 | -else: |
|
72 | +else { |
|
73 | + : |
|
57 | 74 | echo 'false'; |
75 | +} |
|
58 | 76 | endif; |
59 | 77 | |
60 | 78 | function test() |
61 | 79 | { |
62 | - if ($a) |
|
63 | - $a.=' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : '')); |
|
64 | -} |
|
80 | + if ($a) { |
|
81 | + $a.=' '.($b ? 'b' : ($c ? ($d ? 'd' : 'c') : '')); |
|
82 | + } |
|
83 | + } |
|
65 | 84 | |
66 | -if ($a) |
|
85 | +if ($a) { |
|
67 | 86 | foreach ($b as $c) { |
68 | 87 | if ($d) { |
69 | 88 | $e=$f; |
89 | +} |
|
70 | 90 | $g=$h; |
71 | 91 | } elseif ($i==0) { |
72 | 92 | $j=$k; |
@@ -75,7 +95,8 @@ discard block |
||
75 | 95 | |
76 | 96 | ?> |
77 | 97 | <div style="text-align: right;"> |
78 | - <?php if ($model->scenario == 'simple') $widget->renderPager() ?> |
|
98 | + <?php if ($model->scenario == 'simple') { |
|
99 | + $widget->renderPager() ?> |
|
79 | 100 | </div> |
80 | 101 | |
81 | 102 | <?php |
@@ -83,6 +104,7 @@ discard block |
||
83 | 104 | case Shop_Customer :: ERROR_INVALID_GENDER: ?> |
84 | 105 | Ungültiges Geschlecht! |
85 | 106 | <?php break; |
107 | +} |
|
86 | 108 | case Shop_Customer :: ERROR_EMAIL_IN_USE: ?> |
87 | 109 | Die eingetragene E-Mail-Adresse ist bereits registriert. |
88 | 110 | <?php break; |
@@ -95,8 +117,10 @@ discard block |
||
95 | 117 | echo 'foo'; |
96 | 118 | endswitch; |
97 | 119 | endif; |
98 | -else: |
|
120 | +else { |
|
121 | + : |
|
99 | 122 | echo 'foo'; |
123 | +} |
|
100 | 124 | endif; |
101 | 125 | |
102 | 126 | // ELSE IF split over multiple lines (not inline) |
@@ -117,49 +141,59 @@ discard block |
||
117 | 141 | } |
118 | 142 | |
119 | 143 | $stuff = [1,2,3]; |
120 | -foreach($stuff as $num) |
|
144 | +foreach($stuff as $num) { |
|
121 | 145 | if ($num %2 ) { |
122 | 146 | echo "even"; |
147 | +} |
|
123 | 148 | } else { |
124 | 149 | echo "odd"; |
125 | 150 | } |
126 | 151 | |
127 | 152 | $i = 0; |
128 | -foreach($stuff as $num) |
|
153 | +foreach($stuff as $num) { |
|
129 | 154 | do { |
130 | 155 | echo $i; |
156 | +} |
|
131 | 157 | $i++; |
132 | 158 | } while ($i < 5); |
133 | 159 | |
134 | -foreach($stuff as $num) |
|
160 | +foreach($stuff as $num) { |
|
135 | 161 | if (true) { |
136 | 162 | echo "true1\n"; |
163 | +} |
|
137 | 164 | } |
138 | 165 | if (true) { |
139 | 166 | echo "true2\n"; |
140 | 167 | } |
141 | 168 | |
142 | -if ($foo) echo 'foo'; |
|
143 | -elseif ($bar) echo 'bar'; |
|
144 | -else echo 'baz'; |
|
169 | +if ($foo) { |
|
170 | + echo 'foo'; |
|
171 | +} elseif ($bar) { |
|
172 | + echo 'bar'; |
|
173 | +} else { |
|
174 | + echo 'baz'; |
|
175 | +} |
|
145 | 176 | |
146 | 177 | switch ($type) { |
147 | 178 | case 1: |
148 | 179 | if ($foo) { |
149 | 180 | return true; |
150 | - } elseif ($baz) |
|
151 | - return true; |
|
152 | - else { |
|
181 | + } elseif ($baz) { |
|
182 | + return true; |
|
183 | + } else { |
|
153 | 184 | echo 'else'; |
154 | 185 | } |
155 | 186 | break; |
156 | 187 | } |
157 | 188 | |
158 | -foreach ($sql as $s) |
|
189 | +foreach ($sql as $s) { |
|
159 | 190 | if (!$this->execute) echo "<pre>",$s.";\n</pre>"; |
191 | +} |
|
160 | 192 | else { |
161 | 193 | $ok = $this->connDest->Execute($s); |
162 | - if (!$ok) |
|
163 | - if ($this->neverAbort) $ret = false; |
|
164 | - else return false; |
|
194 | + if (!$ok) { |
|
195 | + if ($this->neverAbort) $ret = false; |
|
196 | + } else { |
|
197 | + return false; |
|
198 | + } |
|
165 | 199 | } |
@@ -47,13 +47,13 @@ |
||
47 | 47 | return array( |
48 | 48 | 4 => 1, |
49 | 49 | 5 => 1, |
50 | - ); |
|
50 | + ); |
|
51 | 51 | } else if (version_compare(PHP_VERSION, '5.4.0RC1') >= 0) { |
52 | 52 | // Shorthand echo is always available from PHP 5.4.0 but needed the |
53 | 53 | // short_open_tag ini var to be set for versions before this. |
54 | 54 | return array( |
55 | 55 | 4 => 1, |
56 | - ); |
|
56 | + ); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return array(); |
@@ -45,50 +45,50 @@ |
||
45 | 45 | public function getErrorList($testFile='InlineControlStructureUnitTest.inc') |
46 | 46 | { |
47 | 47 | switch ($testFile) { |
48 | - case 'InlineControlStructureUnitTest.inc': |
|
49 | - return array( |
|
50 | - 3 => 1, |
|
51 | - 7 => 1, |
|
52 | - 11 => 1, |
|
53 | - 13 => 1, |
|
54 | - 15 => 1, |
|
55 | - 17 => 1, |
|
56 | - 23 => 1, |
|
57 | - 42 => 1, |
|
58 | - 43 => 1, |
|
59 | - 45 => 1, |
|
60 | - 46 => 1, |
|
61 | - 49 => 1, |
|
62 | - 62 => 1, |
|
63 | - 66 => 1, |
|
64 | - 78 => 1, |
|
65 | - 120 => 1, |
|
66 | - 128 => 1, |
|
67 | - 134 => 1, |
|
68 | - 142 => 1, |
|
69 | - 143 => 1, |
|
70 | - 144 => 1, |
|
71 | - 150 => 1, |
|
72 | - 158 => 1, |
|
73 | - 159 => 1, |
|
74 | - 162 => 1, |
|
75 | - 163 => 1, |
|
76 | - 164 => 1, |
|
77 | - ); |
|
78 | - break; |
|
79 | - case 'InlineControlStructureUnitTest.js': |
|
80 | - return array( |
|
81 | - 3 => 1, |
|
82 | - 7 => 1, |
|
83 | - 11 => 1, |
|
84 | - 13 => 1, |
|
85 | - 15 => 1, |
|
86 | - 21 => 1, |
|
87 | - ); |
|
88 | - break; |
|
89 | - default: |
|
90 | - return array(); |
|
91 | - break; |
|
48 | + case 'InlineControlStructureUnitTest.inc': |
|
49 | + return array( |
|
50 | + 3 => 1, |
|
51 | + 7 => 1, |
|
52 | + 11 => 1, |
|
53 | + 13 => 1, |
|
54 | + 15 => 1, |
|
55 | + 17 => 1, |
|
56 | + 23 => 1, |
|
57 | + 42 => 1, |
|
58 | + 43 => 1, |
|
59 | + 45 => 1, |
|
60 | + 46 => 1, |
|
61 | + 49 => 1, |
|
62 | + 62 => 1, |
|
63 | + 66 => 1, |
|
64 | + 78 => 1, |
|
65 | + 120 => 1, |
|
66 | + 128 => 1, |
|
67 | + 134 => 1, |
|
68 | + 142 => 1, |
|
69 | + 143 => 1, |
|
70 | + 144 => 1, |
|
71 | + 150 => 1, |
|
72 | + 158 => 1, |
|
73 | + 159 => 1, |
|
74 | + 162 => 1, |
|
75 | + 163 => 1, |
|
76 | + 164 => 1, |
|
77 | + ); |
|
78 | + break; |
|
79 | + case 'InlineControlStructureUnitTest.js': |
|
80 | + return array( |
|
81 | + 3 => 1, |
|
82 | + 7 => 1, |
|
83 | + 11 => 1, |
|
84 | + 13 => 1, |
|
85 | + 15 => 1, |
|
86 | + 21 => 1, |
|
87 | + ); |
|
88 | + break; |
|
89 | + default: |
|
90 | + return array(); |
|
91 | + break; |
|
92 | 92 | }//end switch |
93 | 93 | |
94 | 94 | }//end getErrorList() |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return array<int, int> |
44 | 44 | */ |
45 | - public function getErrorList($testFile='InlineControlStructureUnitTest.inc') |
|
45 | + public function getErrorList($testFile = 'InlineControlStructureUnitTest.inc') |
|
46 | 46 | { |
47 | 47 | switch ($testFile) { |
48 | 48 | case 'InlineControlStructureUnitTest.inc': |