@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | function persistence(int $num): int |
| 19 | 19 | { |
| 20 | 20 | // Ensure that $num is an integer |
| 21 | - $num = (int)$num; |
|
| 21 | + $num = (int) $num; |
|
| 22 | 22 | $total = 1; |
| 23 | 23 | |
| 24 | 24 | $numArray = str_split($num); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | function altPersistence(int $num): int |
| 48 | 48 | { |
| 49 | 49 | // Ensure that $num is an integer |
| 50 | - $num = (int)$num; |
|
| 50 | + $num = (int) $num; |
|
| 51 | 51 | $count = 0; |
| 52 | 52 | while ($num > 9) { |
| 53 | 53 | $num = array_product(str_split($num)); |