@@ -18,11 +18,11 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | function descendingOrder(int $number): int |
| 20 | 20 | { |
| 21 | - $number = (int)$number; |
|
| 21 | + $number = (int) $number; |
|
| 22 | 22 | $arrayNumber = str_split($number); |
| 23 | 23 | |
| 24 | - $arrayNumber = (array)$arrayNumber; |
|
| 24 | + $arrayNumber = (array) $arrayNumber; |
|
| 25 | 25 | arsort($arrayNumber); |
| 26 | 26 | |
| 27 | - return (int)implode($arrayNumber); |
|
| 27 | + return (int) implode($arrayNumber); |
|
| 28 | 28 | } |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | $combinedString = $stringone . $stringtwo; |
| 19 | 19 | $stringonerrayString = str_split($combinedString); |
| 20 | - $stringonerrayString = (array)$stringonerrayString; |
|
| 20 | + $stringonerrayString = (array) $stringonerrayString; |
|
| 21 | 21 | $uniqueString = array_unique($stringonerrayString); |
| 22 | 22 | sort($uniqueString); |
| 23 | 23 | return implode($uniqueString); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | function altlongest($stringone, $stringtwo) |
| 29 | 29 | { |
| 30 | 30 | $stringToSplit = str_split($stringone . $stringtwo); |
| 31 | - $stringToSplit = (array)$stringToSplit; |
|
| 31 | + $stringToSplit = (array) $stringToSplit; |
|
| 32 | 32 | $chars = array_unique($stringToSplit); |
| 33 | 33 | sort($chars); |
| 34 | 34 | return implode('', $chars); |