@@ -14,6 +14,6 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function notifications() |
| 16 | 16 | { |
| 17 | - return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc');; |
|
| 17 | + return $this->morphMany(Notification::class, 'notifiable')->orderBy('created_at', 'desc'); ; |
|
| 18 | 18 | } |
| 19 | 19 | } |
@@ -19,8 +19,7 @@ |
||
| 19 | 19 | if($event->notify) |
| 20 | 20 | { |
| 21 | 21 | $notificationType = UserSettingType::where('name', 'Receive Email Notifications')->first(); |
| 22 | - $userList = User::whereHas('UserSetting', function($q) use ($notificationType) |
|
| 23 | - { |
|
| 22 | + $userList = User::whereHas('UserSetting', function($q) use ($notificationType) { |
|
| 24 | 23 | $q->where('setting_type_id', $notificationType->setting_type_id)->where('value', true); |
| 25 | 24 | })->get(); |
| 26 | 25 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $admin = $this->getAdminNavbar(); |
| 21 | 21 | $navBar = $this->getPrimaryNavbar(); |
| 22 | 22 | $modules = $this->getModules(); |
| 23 | - array_splice($navBar, 1, 0, $admin); // Move the Admin link just under the Dashboard link |
|
| 23 | + array_splice($navBar, 1, 0, $admin); // Move the Admin link just under the Dashboard link |
|
| 24 | 24 | |
| 25 | 25 | return array_merge($navBar, $modules); |
| 26 | 26 | } |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | if(count($modNav) > 0) |
| 212 | 212 | { |
| 213 | 213 | // Split Camel Case name into normal name |
| 214 | - $nav[implode(' ',preg_split('/(?=[A-Z])/', $module->getName()))] = $modNav; |
|
| 214 | + $nav[implode(' ', preg_split('/(?=[A-Z])/', $module->getName()))] = $modNav; |
|
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | class DisableModuleCommand extends Command |
| 11 | 11 | { |
| 12 | - protected $signature = 'tb_module:disable {module}'; |
|
| 12 | + protected $signature = 'tb_module:disable {module}'; |
|
| 13 | 13 | protected $description = 'Disable, but do not remove a Tech Bench Add On Module'; |
| 14 | 14 | |
| 15 | 15 | protected $module; |
@@ -25,8 +25,7 @@ |
||
| 25 | 25 | public function __invoke(ResetTokenRequest $request) |
| 26 | 26 | { |
| 27 | 27 | $status = Password::reset( |
| 28 | - $request->only('email', 'password', 'password_confirmation', 'token'), function($user, $password) |
|
| 29 | - { |
|
| 28 | + $request->only('email', 'password', 'password_confirmation', 'token'), function($user, $password) { |
|
| 30 | 29 | // Determine the new expiration date |
| 31 | 30 | $expires = config('auth.passwords.settings.expire') ? Carbon::now()->addDays(config('auth.passwords.settings.expire')) : null; |
| 32 | 31 | |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | use AllowTrait; |
| 12 | 12 | use HandlesAuthorization; |
| 13 | 13 | |
| 14 | - /** |
|
| 15 | - * Determine whether the user can create models |
|
| 16 | - */ |
|
| 14 | + /** |
|
| 15 | + * Determine whether the user can create models |
|
| 16 | + */ |
|
| 17 | 17 | public function create(User $user) |
| 18 | 18 | { |
| 19 | 19 | return $this->checkPermission($user, 'Manage Equipment'); |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | use HandlesAuthorization; |
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | - * Determine whether the user can create models |
|
| 16 | - */ |
|
| 15 | + * Determine whether the user can create models |
|
| 16 | + */ |
|
| 17 | 17 | public function create(User $user) |
| 18 | 18 | { |
| 19 | 19 | return $this->checkPermission($user, 'Manage Equipment'); |