Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     protected function mapWebRoutes()
56 56
     {
57 57
         Route::middleware('web')
58
-             ->namespace($this->namespace)
59
-             ->group(base_path('routes/web.php'));
58
+                ->namespace($this->namespace)
59
+                ->group(base_path('routes/web.php'));
60 60
     }
61 61
 
62 62
     /**
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected function mapApiRoutes()
70 70
     {
71 71
         Route::prefix('api')
72
-             ->middleware('api')
73
-             ->namespace($this->namespace)
74
-             ->group(base_path('routes/api.php'));
72
+                ->middleware('api')
73
+                ->namespace($this->namespace)
74
+                ->group(base_path('routes/api.php'));
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 class Authenticate extends Middleware
7 7
 {
8 8
     /**
9
-    * Get the path the user should be redirected to when they are not authenticated.
10
-    *
11
-    * @param  \Illuminate\Http\Request  $request
12
-    * @return string
13
-    */
9
+     * Get the path the user should be redirected to when they are not authenticated.
10
+     *
11
+     * @param  \Illuminate\Http\Request  $request
12
+     * @return string
13
+     */
14 14
     protected function redirectTo($request)
15 15
     {
16 16
         if (WhichPortal::isManagerPortal()) {
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
                 )
51 51
             );
52 52
         }
53
-         return $response;
53
+            return $response;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
app/Console/Kernel.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function commands(): void
42 42
     {
43
-        $this->load(__DIR__.'/Commands');
43
+        $this->load(__DIR__ . '/Commands');
44 44
 
45 45
         require base_path('routes/console.php');
46 46
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         // search $needle in process status
61 61
         $result = array_filter(
62 62
             $process_status,
63
-            function ($var) use ($needle) {
63
+            function($var) use ($needle) {
64 64
                 return strpos($var, $needle);
65 65
             }
66 66
         );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         // search $needle in process status
61 61
         $result = array_filter(
62 62
             $process_status,
63
-            function ($var) use ($needle) {
63
+            function ($var) use ($needle){
64 64
                 return strpos($var, $needle);
65 65
             }
66 66
         );
Please login to merge, or discard this patch.
app/Models/JobApplication.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
app/Listeners/ApplicationStatusChanged.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,24 +31,24 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Listeners/LogUserUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Listeners/LogSuccessfulLogin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Listeners/LogUserCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.