@@ -91,7 +91,7 @@ |
||
91 | 91 | private function resolvePath($path) |
92 | 92 | { |
93 | 93 | if (DIRECTORY_SEPARATOR !== $path[0]) { |
94 | - $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path; |
|
94 | + $path = dirname($this->filename) . DIRECTORY_SEPARATOR . $path; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | return $path; |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | function maxi ($a, $b){ |
3 | - if ($a > $b) return $a; |
|
3 | + if ($a > $b) { |
|
4 | + return $a; |
|
5 | + } |
|
4 | 6 | return $b; |
5 | 7 | } |
6 | 8 | \ No newline at end of file |
@@ -3,7 +3,7 @@ |
||
3 | 3 | class A { |
4 | 4 | public function foo($foo, C $c) : H |
5 | 5 | { |
6 | - $x = new B; |
|
6 | + $x = new B; |
|
7 | 7 | D::foo(); |
8 | 8 | } |
9 | 9 | } |
@@ -14,15 +14,15 @@ |
||
14 | 14 | if(true) { |
15 | 15 | |
16 | 16 | } else { |
17 | - if (true) { |
|
17 | + if (true) { |
|
18 | 18 | |
19 | - } else if (true) { |
|
19 | + } else if (true) { |
|
20 | 20 | |
21 | - } elseif (true) { |
|
21 | + } elseif (true) { |
|
22 | 22 | |
23 | - } elseif (true) { |
|
23 | + } elseif (true) { |
|
24 | 24 | |
25 | - } |
|
25 | + } |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 |
@@ -1,7 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | function f_while($a){ |
3 | 3 | $i = 2; |
4 | - if ($a < 0) return 0; |
|
4 | + if ($a < 0) { |
|
5 | + return 0; |
|
6 | + } |
|
5 | 7 | while ($a > 0){ |
6 | 8 | $a -= 100; |
7 | 9 | $i *= 2; |