Passed
Branch master (42cd81)
by Daniel
16:21 queued 13:31
created
7 Kyu/descending-order.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
7 Kyu/two-to-one.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.