@@ -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 |
@@ -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 | } |
@@ -92,11 +92,11 @@ |
||
92 | 92 | $this->delta = $this->from->diffInSeconds($this->to); |
93 | 93 | |
94 | 94 | $this->computeYears() |
95 | - ->computeWeeks() |
|
96 | - ->computeDays() |
|
97 | - ->computeHours() |
|
98 | - ->computeMinutes() |
|
99 | - ->computeSeconds(); |
|
95 | + ->computeWeeks() |
|
96 | + ->computeDays() |
|
97 | + ->computeHours() |
|
98 | + ->computeMinutes() |
|
99 | + ->computeSeconds(); |
|
100 | 100 | |
101 | 101 | return $this; |
102 | 102 | } |