@@ -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) { |
@@ -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]); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | $value = null; |
| 135 | 135 | |
| 136 | 136 | foreach ($keys as $key) { |
| 137 | - if (! request()->$type->has($key)) { |
|
| 137 | + if (!request()->$type->has($key)) { |
|
| 138 | 138 | continue; |
| 139 | 139 | } |
| 140 | 140 | $value = request()->$type->get($key); |