@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 | } |
@@ -25,7 +25,7 @@ |
||
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 |
@@ -89,11 +89,11 @@ discard block |
||
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 |
||
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 | } |
@@ -135,7 +135,7 @@ |
||
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 | } |