@@ -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 |
@@ -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(); |
@@ -43,19 +43,19 @@ |
||
43 | 43 | public function getErrorList($testFile='') |
44 | 44 | { |
45 | 45 | switch ($testFile) { |
46 | - case 'UseDeclarationUnitTest.2.inc': |
|
47 | - return array( |
|
48 | - 4 => 1, |
|
49 | - 5 => 1, |
|
50 | - 10 => 2, |
|
51 | - ); |
|
52 | - case 'UseDeclarationUnitTest.3.inc': |
|
53 | - return array( |
|
54 | - 4 => 1, |
|
55 | - 6 => 1, |
|
56 | - ); |
|
57 | - default: |
|
58 | - return array(); |
|
46 | + case 'UseDeclarationUnitTest.2.inc': |
|
47 | + return array( |
|
48 | + 4 => 1, |
|
49 | + 5 => 1, |
|
50 | + 10 => 2, |
|
51 | + ); |
|
52 | + case 'UseDeclarationUnitTest.3.inc': |
|
53 | + return array( |
|
54 | + 4 => 1, |
|
55 | + 6 => 1, |
|
56 | + ); |
|
57 | + default: |
|
58 | + return array(); |
|
59 | 59 | }//end switch |
60 | 60 | |
61 | 61 | }//end getErrorList() |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @return array<int, int> |
42 | 42 | */ |
43 | - public function getErrorList($testFile='') |
|
43 | + public function getErrorList($testFile = '') |
|
44 | 44 | { |
45 | 45 | switch ($testFile) { |
46 | 46 | case 'CharacterBeforePHPOpeningTagUnitTest.1.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 |
@@ -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 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if ($something) { |
3 | 3 | } |
4 | -foreach ($this as $that ) { |
|
4 | +foreach ($this as $that) { |
|
5 | 5 | } |
6 | 6 | while (true) { |
7 | 7 | for ($i = 0; $i < 10; $i++) { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | foreach ($this as $that) { |
13 | 13 | do { |
14 | - } while ( true ); |
|
14 | + } while (true); |
|
15 | 15 | |
16 | 16 | } |
17 | 17 | } |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | $settingsUpdated = FALSE; |
24 | 24 | } |
25 | 25 | |
26 | -foreach ( $blah as $var ) { |
|
27 | - if ( $blah ) { |
|
26 | +foreach ($blah as $var) { |
|
27 | + if ($blah) { |
|
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 1 |
40 | 40 | // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 1 |
41 | 41 | foreach ($something as $blah => $that) {} |
42 | -foreach ( $something as $blah => $that ) {} |
|
43 | -foreach ( $something as $blah => $that ) {} |
|
42 | +foreach ($something as $blah => $that) {} |
|
43 | +foreach ($something as $blah => $that) {} |
|
44 | 44 | // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesAfterOpen 0 |
45 | 45 | // @codingStandardsChangeSetting PSR2.ControlStructures.ControlStructureSpacing requiredSpacesBeforeClose 0 |
46 | 46 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | ], $baz); |
7 | 7 | |
8 | 8 | // ok |
9 | -$app->get('/hello/{name}', function ($name) use ($app) { |
|
9 | +$app->get('/hello/{name}', function($name) use ($app) { |
|
10 | 10 | return 'Hello '.$app->escape($name); |
11 | 11 | }, array( |
12 | 12 | '1', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | . 'text', 'string'); |
64 | 64 | |
65 | 65 | foo(bar(), $a); |
66 | -foo();bar(); |
|
66 | +foo(); bar(); |
|
67 | 67 | |
68 | 68 | foo( |
69 | 69 | true |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | if (array_filter( |
94 | 94 | $commands, |
95 | - function ($cmd) use ($commandName) { |
|
95 | + function($cmd) use ($commandName) { |
|
96 | 96 | return ($cmd['name'] == $commandName); |
97 | 97 | } |
98 | 98 | )) { |
@@ -101,14 +101,14 @@ discard block |
||
101 | 101 | |
102 | 102 | myFunction( |
103 | 103 | 'foo', (object) array( |
104 | - 'bar' => function ($x) { |
|
104 | + 'bar' => function($x) { |
|
105 | 105 | return true; |
106 | 106 | }, |
107 | 107 | 'baz' => false |
108 | 108 | ) |
109 | 109 | ); |
110 | 110 | $qux = array_filter( |
111 | - $quux, function ($x) { |
|
111 | + $quux, function($x) { |
|
112 | 112 | return $x; |
113 | 113 | } |
114 | 114 | ); |
@@ -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 |