@@ -4,30 +4,30 @@ discard block |
||
4 | 4 | { |
5 | 5 | function __construct() |
6 | 6 | { |
7 | - $this->hello(); // error here |
|
7 | + $this->hello(); // error here |
|
8 | 8 | } |
9 | 9 | |
10 | - function hello() // error here |
|
10 | + function hello() // error here |
|
11 | 11 | { // no error here as brackets can be put anywhere in the pear standard |
12 | 12 | echo 'hello'; |
13 | 13 | } |
14 | 14 | |
15 | 15 | function hello2() |
16 | 16 | { |
17 | - if (TRUE) { // error here |
|
17 | + if (TRUE) { // error here |
|
18 | 18 | echo 'hello'; // no error here as its more than 4 spaces. |
19 | 19 | } else { |
20 | 20 | echo 'bye'; // error here |
21 | 21 | } |
22 | 22 | |
23 | 23 | while (TRUE) { |
24 | - echo 'hello'; // error here |
|
25 | - } |
|
24 | + echo 'hello'; // error here |
|
25 | + } |
|
26 | 26 | |
27 | - do { // error here |
|
28 | - echo 'hello'; // error here |
|
29 | - } while (TRUE); |
|
30 | - } |
|
27 | + do { // error here |
|
28 | + echo 'hello'; // error here |
|
29 | + } while (TRUE); |
|
30 | + } |
|
31 | 31 | |
32 | 32 | function hello3() |
33 | 33 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | |
125 | 125 | /** |
126 | - */ |
|
126 | + */ |
|
127 | 127 | |
128 | 128 | /* |
129 | 129 | This comment has a newline in it. |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | |
137 | 137 | // no errors below. |
138 | 138 | $array = array( |
139 | - 'this', |
|
140 | - 'that' => array( |
|
141 | - 'hello', |
|
142 | - 'hello again' => array( |
|
143 | - 'hello', |
|
144 | - ), |
|
139 | + 'this', |
|
140 | + 'that' => array( |
|
141 | + 'hello', |
|
142 | + 'hello again' => array( |
|
143 | + 'hello', |
|
144 | + ), |
|
145 | 145 | ), |
146 | - ); |
|
146 | + ); |
|
147 | 147 | } |
148 | 148 | } |
149 | 149 | |
@@ -221,8 +221,8 @@ discard block |
||
221 | 221 | { |
222 | 222 | /* taken from http://de3.php.net/manual/en/reserved.php */ |
223 | 223 | # $m[] = 'declare'; |
224 | - /* taken from http://de3.php.net/manual/en/reserved.php */ |
|
225 | - # $m[] = 'declare'; |
|
224 | + /* taken from http://de3.php.net/manual/en/reserved.php */ |
|
225 | + # $m[] = 'declare'; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | foreach ($elements as $element) { |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | array_map( |
309 | 309 | function($x) |
310 | 310 | { |
311 | - return trim($x); |
|
311 | + return trim($x); |
|
312 | 312 | }, |
313 | 313 | $array |
314 | 314 | ); |
315 | 315 | \ No newline at end of file |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | function test1() |
10 | 10 | { |
11 | - } |
|
11 | + } |
|
12 | 12 | |
13 | 13 | function test2() {} |
14 | 14 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | class Test2 |
23 | 23 | { |
24 | - } |
|
24 | + } |
|
25 | 25 | |
26 | 26 | |
27 | 27 | function test2() |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | $GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] |
3 | - = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); |
|
3 | + = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); |
|
4 | 4 | |
5 | 5 | $GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] |
6 | - = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); |
|
6 | + = $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); |
|
7 | 7 | |
8 | 8 | $GLOBALS['TSFE']->additionalHeaderData[$this->strApplicationName] = |
9 | 9 | $this->xajax->getJavascript(t3lib_extMgm::siteRelPath('nr_xajax')); |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | ); |
80 | 80 | |
81 | 81 | array_map( |
82 | - function($x) |
|
83 | - { |
|
84 | - return trim($x); |
|
85 | - }, |
|
82 | + function($x) |
|
83 | + { |
|
84 | + return trim($x); |
|
85 | + }, |
|
86 | 86 | $array |
87 | 87 | ); |
88 | 88 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | 'is', |
174 | 174 | 'an', |
175 | 175 | 'array' |
176 | - ], |
|
176 | + ], |
|
177 | 177 | array( |
178 | 178 | 'this', |
179 | 179 | 'is', |
@@ -185,13 +185,13 @@ discard block |
||
185 | 185 | 'is', |
186 | 186 | 'an', |
187 | 187 | 'array' |
188 | - ), |
|
188 | + ), |
|
189 | 189 | function($x) |
190 | 190 | { |
191 | 191 | echo 'wee'; |
192 | 192 | |
193 | 193 | return trim($x); |
194 | - } |
|
194 | + } |
|
195 | 195 | ); |
196 | 196 | |
197 | 197 | function foo() |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | $test = ' |
276 | 276 | ' . function_0( |
277 | 277 | $argument_0, |
278 | - $argument_1 |
|
278 | + $argument_1 |
|
279 | 279 | ); |
280 | 280 | } |
281 | 281 | |
@@ -326,15 +326,15 @@ discard block |
||
326 | 326 | public function getInstance() |
327 | 327 | { |
328 | 328 | return new static( |
329 | - 'arg', |
|
330 | - 'foo' |
|
329 | + 'arg', |
|
330 | + 'foo' |
|
331 | 331 | ); |
332 | 332 | } |
333 | 333 | |
334 | 334 | public function getSelf() |
335 | 335 | { |
336 | 336 | return new self( |
337 | - 'a','b', 'c' |
|
337 | + 'a','b', 'c' |
|
338 | 338 | ); |
339 | 339 | } |
340 | 340 | } |
@@ -343,14 +343,14 @@ discard block |
||
343 | 343 | 'x'); |
344 | 344 | |
345 | 345 | $obj->{$x}(1, |
346 | - 2); |
|
346 | + 2); |
|
347 | 347 | |
348 | 348 | return (function ($a, $b) { |
349 | 349 | return function ($c, $d) use ($a, $b) { |
350 | 350 | echo $a, $b, $c, $d; |
351 | 351 | }; |
352 | 352 | })( |
353 | - 'a','b' |
|
353 | + 'a','b' |
|
354 | 354 | )('c', |
355 | 355 | 'd'); |
356 | 356 | |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | |
375 | 375 | function foo() |
376 | 376 | { |
377 | - Bar( |
|
377 | + Bar( |
|
378 | 378 | function () { |
379 | 379 | } |
380 | 380 | ); |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | |
383 | 383 | $deprecated_functions = [ |
384 | 384 | 'the_category_ID' |
385 | - => function_call( // 7 spaces, not 8. This is the problem line. |
|
385 | + => function_call( // 7 spaces, not 8. This is the problem line. |
|
386 | 386 | $a, |
387 | 387 | $b |
388 | 388 | ), |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | |
391 | 391 | $deprecated_functions = [ |
392 | 392 | 'the_category_ID' |
393 | - => function_call( // 9 spaces, not 8. This is the problem line. |
|
393 | + => function_call( // 9 spaces, not 8. This is the problem line. |
|
394 | 394 | $a, |
395 | 395 | $b |
396 | 396 | ), |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | function someFunctionWithAVeryLongName($firstParameter='something', |
3 | - $secondParameter='booooo', $third=null, $fourthParameter=false, |
|
4 | - $fifthParameter=123.12, $sixthParam=true |
|
3 | + $secondParameter='booooo', $third=null, $fourthParameter=false, |
|
4 | + $fifthParameter=123.12, $sixthParam=true |
|
5 | 5 | ){ |
6 | 6 | } |
7 | 7 | |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | $url, |
66 | 66 | $requireScheme=TRUE, |
67 | 67 | array $allowedSchemes=array( |
68 | - 'http', |
|
69 | - 'https', |
|
70 | - ), |
|
68 | + 'http', |
|
69 | + 'https', |
|
70 | + ), |
|
71 | 71 | array $notAllowedSchemes=array('ftp', 'sftp') |
72 | 72 | ) { |
73 | 73 | } |
@@ -24,14 +24,14 @@ discard block |
||
24 | 24 | |
25 | 25 | class MyClass |
26 | 26 | { |
27 | - function func1() |
|
28 | - { |
|
27 | + function func1() |
|
28 | + { |
|
29 | 29 | function func2() |
30 | 30 | { |
31 | - return $a; |
|
31 | + return $a; |
|
32 | 32 | } |
33 | 33 | return $data; |
34 | - } |
|
34 | + } |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | class MyClass |
@@ -59,17 +59,17 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | class mpgResponse{ |
62 | - var $term_id; |
|
63 | - var $currentTag; |
|
64 | - function characterHandler($parser,$data){ |
|
65 | - switch($this->currentTag) |
|
66 | - { |
|
67 | - case "term_id": { |
|
68 | - $this->term_id=$data; |
|
69 | - break; |
|
70 | - } |
|
71 | - } |
|
72 | - }//end characterHandler |
|
62 | + var $term_id; |
|
63 | + var $currentTag; |
|
64 | + function characterHandler($parser,$data){ |
|
65 | + switch($this->currentTag) |
|
66 | + { |
|
67 | + case "term_id": { |
|
68 | + $this->term_id=$data; |
|
69 | + break; |
|
70 | + } |
|
71 | + } |
|
72 | + }//end characterHandler |
|
73 | 73 | }//end class mpgResponse |
74 | 74 | |
75 | 75 | class foo |
@@ -35,8 +35,8 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | class IncorrectBracePlacement |
38 | - { |
|
39 | - } |
|
38 | + { |
|
39 | + } |
|
40 | 40 | |
41 | 41 | abstract class CodeSnifferFail |
42 | 42 | extends |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | if (!class_exists('ClassOpeningBraceTabIndented')) { |
4 | 4 | abstract class ClassOpeningBraceTabIndented |
5 | - { |
|
6 | - } |
|
5 | + { |
|
6 | + } |
|
7 | 7 | } |
8 | 8 | |
9 | 9 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | if (($condition1 |
53 | 53 | || $condition2) |
54 | - ) { |
|
54 | + ) { |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | if ( |