@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function boot() |
27 | 27 | { |
28 | 28 | // Allow migrations publish |
29 | - if (! class_exists('AddTimezoneColumnToUsersTable')) { |
|
29 | + if (!class_exists('AddTimezoneColumnToUsersTable')) { |
|
30 | 30 | $this->publishes([ |
31 | 31 | __DIR__ . '/database/migrations/add_timezone_column_to_users_table.php.stub' => database_path('/migrations/' . date('Y_m_d_His') . '_add_timezone_column_to_users_table.php'), |
32 | 32 | ], 'migrations'); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | // Register a blade directive to show user date/time in their timezone |
47 | 47 | Blade::directive( |
48 | 48 | 'displayDate', |
49 | - function ($expression) { |
|
49 | + function($expression) { |
|
50 | 50 | $options = explode(',', $expression); |
51 | 51 | |
52 | 52 | if (count($options) == 1) { |
@@ -103,8 +103,8 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return mixed |
|
107 | - */ |
|
106 | + * @return mixed |
|
107 | + */ |
|
108 | 108 | private function getFromLookup() |
109 | 109 | { |
110 | 110 | $result = null; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $formatted_date_time = $date->format($format); |
31 | 31 | |
32 | 32 | if ($format_timezone) { |
33 | - return $formatted_date_time.' '.$this->formatTimezone($date); |
|
33 | + return $formatted_date_time . ' ' . $this->formatTimezone($date); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | return $formatted_date_time; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $parts = explode('/', $timezone); |
57 | 57 | |
58 | 58 | if (count($parts) > 1) { |
59 | - return str_replace('_', ' ', $parts[1]).', '.$parts[0]; |
|
59 | + return str_replace('_', ' ', $parts[1]) . ', ' . $parts[0]; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | return str_replace('_', ' ', $parts[0]); |