Completed
Push — master ( 205cf7...842449 )
by Arnold
02:56
created
src/DateExtension.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,6 +183,7 @@  discard block
 block discarded – undo
183 183
      * Split duration into seconds, minutes, hours, days, weeks and years.
184 184
      * 
185 185
      * @param int $seconds
186
+     * @param integer $max
186 187
      * @return array
187 188
      */
188 189
     protected function splitDuration($seconds, $max)
@@ -228,7 +229,7 @@  discard block
 block discarded – undo
228 229
      * 
229 230
      * @param int    $seconds    Time in seconds
230 231
      * @param array  $units      Time units (seconds, minutes, hours, days, weeks, years)
231
-     * @param string $separator
232
+     * @param string $seperator
232 233
      * @return string
233 234
      */
234 235
     public function duration($seconds, $units = ['s', 'm', 'h', 'd', 'w', 'y'], $seperator = ' ')
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@
 block discarded – undo
62 62
         
63 63
         switch ($format) {
64 64
             case null:     $pattern = $this->getDefaultDatePattern($calendar); 
65
-                           $format = \IntlDateFormatter::SHORT; break;
65
+                            $format = \IntlDateFormatter::SHORT; break;
66 66
             case 'short':  $format = \IntlDateFormatter::SHORT;  break;
67 67
             case 'medium': $format = \IntlDateFormatter::MEDIUM; break;
68 68
             case 'long':   $format = \IntlDateFormatter::LONG;   break;
69 69
             case 'full':   $format = \IntlDateFormatter::FULL;   break;
70 70
             default:       $pattern = $format;
71
-                           $format = \IntlDateFormatter::SHORT; break;
71
+                            $format = \IntlDateFormatter::SHORT; break;
72 72
         }
73 73
         
74 74
         return [$format, $pattern];
Please login to merge, or discard this patch.
src/ArrayExtension.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function sum($array)
45 45
     {
46
-       if (!isset($array)) return null;
47
-       return array_sum((array)$array);
46
+        if (!isset($array)) return null;
47
+        return array_sum((array)$array);
48 48
     }
49 49
     
50 50
     /**
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function product($array)
57 57
     {
58
-       if (!isset($array)) return null;
59
-       return array_product((array)$array);
58
+        if (!isset($array)) return null;
59
+        return array_product((array)$array);
60 60
     }
61 61
     
62 62
     /**
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function values($array)
69 69
     {
70
-       if (!isset($array)) return null;
71
-       return array_values((array)$array);
70
+        if (!isset($array)) return null;
71
+        return array_values((array)$array);
72 72
     }
73 73
     
74 74
     
Please login to merge, or discard this patch.