@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | function solution($number) |
| 11 | 11 | { |
| 12 | 12 | $sum = 0; |
| 13 | - for ( $i = 3; $i < $number; $i++) { |
|
| 13 | + for ($i = 3; $i < $number; $i++) { |
|
| 14 | 14 | |
| 15 | 15 | if ($i % 3 === 0 || $i % 5 === 0) { |
| 16 | 16 | $sum += $i; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | return array_sum( |
| 27 | 27 | array_filter( |
| 28 | - range(1, $number-1), function ($item) { |
|
| 28 | + range(1, $number - 1), function($item) { |
|
| 29 | 29 | return $item % 3 == 0 || $item % 5 == 0; |
| 30 | 30 | } |
| 31 | 31 | ) |