@@ -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) { |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | use Laravel\Passport\Events\AccessTokenCreated; |
| 8 | 8 | use Torann\GeoIP\Location; |
| 9 | 9 | |
| 10 | -use App\Models\User; //added this to allow us use the User model below |
|
| 10 | +use App\Models\User; //added this to allow us use the User model below |
|
| 11 | 11 | |
| 12 | 12 | class UpdateUsersTimezone |
| 13 | 13 | { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $value = null; |
| 149 | 149 | |
| 150 | 150 | foreach ($keys as $key) { |
| 151 | - if (! request()->$type->has($key)) { |
|
| 151 | + if (!request()->$type->has($key)) { |
|
| 152 | 152 | continue; |
| 153 | 153 | } |
| 154 | 154 | $value = request()->$type->get($key); |