@@ -34,7 +34,7 @@ |
||
| 34 | 34 | for ($counter; $startpeople < $endpeople; $counter++) { |
| 35 | 35 | $startpeople = $startpeople * (1 + $percent / 100) + $aug ; |
| 36 | 36 | } |
| 37 | - return $counter; |
|
| 37 | + return $counter; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | // Alternate solution with ternary: |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | function descendingOrder(int $number): int |
| 20 | 20 | { |
| 21 | - $number = (int)$number; |
|
| 22 | - $arrayNumber = str_split($number); |
|
| 23 | - arsort($arrayNumber); |
|
| 24 | - return (int) implode($arrayNumber); |
|
| 21 | + $number = (int)$number; |
|
| 22 | + $arrayNumber = str_split($number); |
|
| 23 | + arsort($arrayNumber); |
|
| 24 | + return (int) implode($arrayNumber); |
|
| 25 | 25 | } |