@@ -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 |
@@ -45,31 +45,31 @@ |
||
45 | 45 | public function getErrorList($testFile='MultiLineConditionUnitTest.inc') |
46 | 46 | { |
47 | 47 | $errors = array( |
48 | - 21 => 1, |
|
49 | - 22 => 1, |
|
50 | - 35 => 1, |
|
51 | - 40 => 1, |
|
52 | - 41 => 1, |
|
53 | - 42 => 1, |
|
54 | - 43 => 1, |
|
55 | - 49 => 1, |
|
56 | - 54 => 1, |
|
57 | - 57 => 1, |
|
58 | - 58 => 1, |
|
59 | - 59 => 1, |
|
60 | - 61 => 1, |
|
61 | - 67 => 1, |
|
62 | - 87 => 1, |
|
63 | - 88 => 1, |
|
64 | - 89 => 1, |
|
65 | - 90 => 1, |
|
66 | - 96 => 2, |
|
67 | - 101 => 1, |
|
68 | - 109 => 2, |
|
69 | - 125 => 1, |
|
70 | - 145 => 1, |
|
71 | - 153 => 1, |
|
72 | - ); |
|
48 | + 21 => 1, |
|
49 | + 22 => 1, |
|
50 | + 35 => 1, |
|
51 | + 40 => 1, |
|
52 | + 41 => 1, |
|
53 | + 42 => 1, |
|
54 | + 43 => 1, |
|
55 | + 49 => 1, |
|
56 | + 54 => 1, |
|
57 | + 57 => 1, |
|
58 | + 58 => 1, |
|
59 | + 59 => 1, |
|
60 | + 61 => 1, |
|
61 | + 67 => 1, |
|
62 | + 87 => 1, |
|
63 | + 88 => 1, |
|
64 | + 89 => 1, |
|
65 | + 90 => 1, |
|
66 | + 96 => 2, |
|
67 | + 101 => 1, |
|
68 | + 109 => 2, |
|
69 | + 125 => 1, |
|
70 | + 145 => 1, |
|
71 | + 153 => 1, |
|
72 | + ); |
|
73 | 73 | |
74 | 74 | if ($testFile === 'MultiLineConditionUnitTest.inc') { |
75 | 75 | $errors[167] = 1; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return array<int, int> |
44 | 44 | */ |
45 | - public function getErrorList($testFile='MultiLineConditionUnitTest.inc') |
|
45 | + public function getErrorList($testFile = 'MultiLineConditionUnitTest.inc') |
|
46 | 46 | { |
47 | 47 | $errors = array( |
48 | 48 | 21 => 1, |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | |
20 | 20 | do { echo $i; } while ($i > 0); |
21 | 21 | |
22 | -do{ |
|
22 | +do { |
|
23 | 23 | echo $i; |
24 | -}while($i > 0); |
|
24 | +} while ($i > 0); |
|
25 | 25 | |
26 | 26 | |
27 | 27 | // while |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | echo $i; |
30 | 30 | } |
31 | 31 | |
32 | -while($i < 1){ |
|
32 | +while ($i < 1) { |
|
33 | 33 | echo $i; |
34 | 34 | } |
35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | echo $i; |
42 | 42 | } |
43 | 43 | |
44 | -for($i = 1; $i < 1; $i++){ |
|
44 | +for ($i = 1; $i < 1; $i++) { |
|
45 | 45 | echo $i; |
46 | 46 | } |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | echo $item; |
54 | 54 | } |
55 | 55 | |
56 | -foreach($items as $item){ |
|
56 | +foreach ($items as $item) { |
|
57 | 57 | echo $item; |
58 | 58 | } |
59 | 59 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $i = 1; |
66 | 66 | } |
67 | 67 | |
68 | -if($i == 0){ |
|
68 | +if ($i == 0) { |
|
69 | 69 | $i = 1; |
70 | 70 | } |
71 | 71 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | if ($i == 0) { |
83 | 83 | $i = 1; |
84 | -}else{ |
|
84 | +} else { |
|
85 | 85 | $i = 0; |
86 | 86 | } |
87 | 87 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | if ($i == 0) { |
99 | 99 | $i = 1; |
100 | -}else{ |
|
100 | +} else { |
|
101 | 101 | $i = 0; |
102 | 102 | } |
103 | 103 | |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | |
120 | 120 | if ($i == 0) { |
121 | 121 | $i = 1; |
122 | -}else if($i == 2){ |
|
122 | +} else if ($i == 2) { |
|
123 | 123 | $i = 0; |
124 | 124 | } |
125 | 125 | |
126 | 126 | if ($i == 0) { |
127 | 127 | $i = 1; |
128 | -}elseif($i == 2){ |
|
128 | +}elseif ($i == 2) { |
|
129 | 129 | $i = 0; |
130 | 130 | } |
131 | 131 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | if ($i == 0) { |
83 | 83 | $i = 1; |
84 | -}else{ |
|
84 | +} else{ |
|
85 | 85 | $i = 0; |
86 | 86 | } |
87 | 87 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | if ($i == 0) { |
99 | 99 | $i = 1; |
100 | -}else{ |
|
100 | +} else{ |
|
101 | 101 | $i = 0; |
102 | 102 | } |
103 | 103 | |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | |
120 | 120 | if ($i == 0) { |
121 | 121 | $i = 1; |
122 | -}else if($i == 2){ |
|
122 | +} else if($i == 2){ |
|
123 | 123 | $i = 0; |
124 | 124 | } |
125 | 125 | |
126 | 126 | if ($i == 0) { |
127 | 127 | $i = 1; |
128 | -}elseif($i == 2){ |
|
128 | +} elseif($i == 2){ |
|
129 | 129 | $i = 0; |
130 | 130 | } |
131 | 131 | |
@@ -153,7 +153,6 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | if ($i == 0) { |
156 | -} |
|
157 | -else { |
|
156 | +} else { |
|
158 | 157 | } |
159 | 158 | ?> |
160 | 159 | \ No newline at end of file |
@@ -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 |
@@ -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 |
@@ -58,14 +58,14 @@ |
||
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
61 | -class mpgResponse{ |
|
61 | +class mpgResponse { |
|
62 | 62 | var $term_id; |
63 | 63 | var $currentTag; |
64 | - function characterHandler($parser,$data){ |
|
65 | - switch($this->currentTag) |
|
64 | + function characterHandler($parser, $data) { |
|
65 | + switch ($this->currentTag) |
|
66 | 66 | { |
67 | 67 | case "term_id": { |
68 | - $this->term_id=$data; |
|
68 | + $this->term_id = $data; |
|
69 | 69 | break; |
70 | 70 | } |
71 | 71 | } |
@@ -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 |
@@ -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 |
@@ -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 |