Passed
Push — master ( 6917c6...8092ee )
by Jean-Philippe
16:54 queued 01:52
created
src/Traits/CalculateTimeDiff.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $now = Carbon::now();
21 21
 
22 22
         return $countdown->from($attribute)
23
-                         ->to($now)->get();
23
+                            ->to($now)->get();
24 24
     }
25 25
 
26 26
     /**
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
         $now = Carbon::now();
37 37
 
38 38
         return $countdown->from($now)
39
-                         ->to($attribute)->get();
39
+                            ->to($attribute)->get();
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/CountdownServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function register()
27 27
     {
28
-        $this->app->bind('jpmurray.countdown', function ($app) {
28
+        $this->app->bind('jpmurray.countdown', function($app) {
29 29
             $carbon = new Carbon;
30 30
             $timezone = $app->config->get('app.timezone');
31 31
 
Please login to merge, or discard this patch.
src/Countdown.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         $this->delta = $this->from->diffInSeconds($this->to);
90 90
         
91 91
         $this->computeYears()
92
-             ->computeWeeks()
93
-             ->computeDays()
94
-             ->computeHours()
95
-             ->computeMinutes()
96
-             ->computeSeconds();
92
+                ->computeWeeks()
93
+                ->computeDays()
94
+                ->computeHours()
95
+                ->computeMinutes()
96
+                ->computeSeconds();
97 97
 
98 98
         return $this;
99 99
     }
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
                 return $value;
116 116
             }
117 117
 
118
-             // If the value is already a DateTime instance, we will just skip the rest of
119
-             // these checks since they will be a waste of time, and hinder performance
120
-             // when checking the field. We will just return the DateTime right away.
118
+                // If the value is already a DateTime instance, we will just skip the rest of
119
+                // these checks since they will be a waste of time, and hinder performance
120
+                // when checking the field. We will just return the DateTime right away.
121 121
             if ($value instanceof DateTimeInterface) {
122 122
                 return $this->carbon->instance($value);
123 123
             }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
             }
136 136
 
137 137
             // Finally
138
-            return $this->carbon->parse((string)$value);
138
+            return $this->carbon->parse((string) $value);
139 139
         } catch (Exception $e) {
140 140
             throw new InvalidDateFormatToCountdown;
141 141
         }
Please login to merge, or discard this patch.