@@ -18,11 +18,11 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | function descendingOrder(int $number): int |
| 20 | 20 | { |
| 21 | - $number = (int)$number; |
|
| 22 | - $arrayNumber = str_split($number); |
|
| 21 | + $number = (int)$number; |
|
| 22 | + $arrayNumber = str_split($number); |
|
| 23 | 23 | |
| 24 | - $arrayNumber = (array)$arrayNumber; |
|
| 25 | - arsort($arrayNumber); |
|
| 24 | + $arrayNumber = (array)$arrayNumber; |
|
| 25 | + arsort($arrayNumber); |
|
| 26 | 26 | |
| 27 | - return (int)implode($arrayNumber); |
|
| 27 | + return (int)implode($arrayNumber); |
|
| 28 | 28 | } |