| @@ -81,7 +81,7 @@ | ||
| 81 | 81 | protected function addNestedValidatorRules($nestedAttribute, $validatorRules, $rules = []) | 
| 82 | 82 |      { | 
| 83 | 83 | // prepend the attribute name of each validator rule with the nested attribute name | 
| 84 | -        $newRules = $this->arrayMapKeys(function ($key) use ($nestedAttribute) { | |
| 84 | +        $newRules = $this->arrayMapKeys(function($key) use ($nestedAttribute) { | |
| 85 | 85 |                  return implode('.', [$nestedAttribute, $key]); | 
| 86 | 86 | }, | 
| 87 | 87 | $validatorRules); | 
| @@ -28,6 +28,6 @@ | ||
| 28 | 28 | public function handle(Login $event) | 
| 29 | 29 |      { | 
| 30 | 30 | $user = $event->user; | 
| 31 | -        Log::notice('Login by user {id=' . $user->id . ', email=' . $user->email . ', role=' . $user->user_role->name . '}'); | |
| 31 | +        Log::notice('Login by user {id='.$user->id.', email='.$user->email.', role='.$user->user_role->name.'}'); | |
| 32 | 32 | } | 
| 33 | 33 | } | 
| @@ -26,6 +26,6 @@ | ||
| 26 | 26 | */ | 
| 27 | 27 | public function handle(UserCreated $event) | 
| 28 | 28 |      { | 
| 29 | -        Log::notice('User created: ' . $event->user); | |
| 29 | +        Log::notice('User created: '.$event->user); | |
| 30 | 30 | } | 
| 31 | 31 | } | 
| @@ -26,6 +26,6 @@ | ||
| 26 | 26 | */ | 
| 27 | 27 | public function handle(UserUpdated $event) | 
| 28 | 28 |      { | 
| 29 | -        Log::notice('User updated: ' . $event->user); | |
| 29 | +        Log::notice('User updated: '.$event->user); | |
| 30 | 30 | } | 
| 31 | 31 | } | 
| @@ -31,24 +31,24 @@ | ||
| 31 | 31 | |
| 32 | 32 |          if (Auth::check()) { | 
| 33 | 33 | $user = Auth::user(); | 
| 34 | -            $userText = '{id=' . $user->id . ', email=' . $user->email . '}'; | |
| 34 | +            $userText = '{id='.$user->id.', email='.$user->email.'}'; | |
| 35 | 35 |          } else { | 
| 36 | 36 |              $userText = '{null}'; | 
| 37 | 37 | } | 
| 38 | 38 | |
| 39 | 39 | // Log when application is first created | 
| 40 | 40 |          if ($application->wasRecentlyCreated) { | 
| 41 | -            $applicationText = '{id=' . $application->id . ', status=' . $application->application_status->name . '}'; | |
| 41 | +            $applicationText = '{id='.$application->id.', status='.$application->application_status->name.'}'; | |
| 42 | 42 | |
| 43 | -            Log::notice('Application created: application ' . $applicationText . ' has been created by user ' . $userText); | |
| 43 | +            Log::notice('Application created: application '.$applicationText.' has been created by user '.$userText); | |
| 44 | 44 | } | 
| 45 | 45 | // Log if application status has been changed | 
| 46 | 46 |          elseif ($application->application_status_id != $application->getOriginal('application_status_id')) { | 
| 47 | 47 | $freshApplication = $application->fresh(); | 
| 48 | -            $applicationText = '{id=' . $freshApplication->id . '}'; | |
| 49 | -            $statusText = '{' . $freshApplication->application_status->name . '}'; | |
| 48 | +            $applicationText = '{id='.$freshApplication->id.'}'; | |
| 49 | +            $statusText = '{'.$freshApplication->application_status->name.'}'; | |
| 50 | 50 | |
| 51 | -            Log::notice('Application status changed: application ' . $applicationText . ' has been changed to ' . $statusText . ' by user ' . $userText); | |
| 51 | +            Log::notice('Application status changed: application '.$applicationText.' has been changed to '.$statusText.' by user '.$userText); | |
| 52 | 52 | } | 
| 53 | 53 | } | 
| 54 | 54 | } | 
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 | */ | 
| 39 | 39 | protected function commands(): void | 
| 40 | 40 |      { | 
| 41 | - $this->load(__DIR__ . '/Commands'); | |
| 41 | + $this->load(__DIR__.'/Commands'); | |
| 42 | 42 | |
| 43 | 43 |          require base_path('routes/console.php'); | 
| 44 | 44 | } | 
| @@ -58,7 +58,7 @@ discard block | ||
| 58 | 58 | // search $needle in process status | 
| 59 | 59 | $result = array_filter( | 
| 60 | 60 | $process_status, | 
| 61 | -            function ($var) use ($needle) { | |
| 61 | +            function($var) use ($needle) { | |
| 62 | 62 | return strpos($var, $needle); | 
| 63 | 63 | } | 
| 64 | 64 | ); | 
| @@ -214,7 +214,7 @@ | ||
| 214 | 214 | public function meetsEssentialCriteria(): bool | 
| 215 | 215 |      { | 
| 216 | 216 | $essentialCriteria = $this->job_poster->criteria->filter( | 
| 217 | -            function ($value, $key) { | |
| 217 | +            function($value, $key) { | |
| 218 | 218 | return $value->criteria_type->name == 'essential'; | 
| 219 | 219 | } | 
| 220 | 220 | ); |