Passed
Push — dependabot/npm_and_yarn/dev/co... ( c231c8 )
by
unknown
11:30
created
app/Listeners/LogApplicationRetrieved.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
30 30
     {
31 31
         $application = $event->application;
32 32
 
33
-        if (Auth::check()) {
34
-            $user = Auth::user();
33
+        if (Auth::check ()) {
34
+            $user = Auth::user ();
35 35
 
36 36
             //Don't bother logging when an applicant views their own application
37 37
             if ($application->applicant->user->id != $user->id) {
38 38
                 $applicationText = "{id=$application->id}";
39 39
                 $userText = "{id=$user->id, email=$user->email}";
40
-                Log::notice("Application viewed: application $applicationText viewed by user $userText.");
40
+                Log::notice ("Application viewed: application $applicationText viewed by user $userText.");
41 41
             }
42 42
         } else {
43 43
             $applicationText = "{id=$application->id}";
44
-            Log::notice("Application retrieved: application $applicationText retrieved with no user logged in.");
44
+            Log::notice ("Application retrieved: application $applicationText retrieved with no user logged in.");
45 45
         }
46 46
     }
47 47
 }
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
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
     public function handle(Login $event)
30 30
     {
31 31
         $user = $event->user;
32
-        Log::notice("Login by user {id=".$user->id.", email=".$user->email.", role=".$user->user_role->name."}");
32
+        Log::notice ("Login by user {id=".$user->id.", email=".$user->email.", role=".$user->user_role->name."}");
33 33
     }
34 34
 }
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
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function handle(UserCreated $event)
29 29
     {
30
-        Log::notice("User created: ".$event->user);
30
+        Log::notice ("User created: ".$event->user);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Listeners/ApplicationStatusChanged.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,26 +30,26 @@
 block discarded – undo
30 30
     {
31 31
         $application = $event->application;
32 32
 
33
-        if (Auth::check()) {
34
-            $user = Auth::user();
33
+        if (Auth::check ()) {
34
+            $user = Auth::user ();
35 35
             $userText = "{id=".$user->id.", email=".$user->email."}";
36 36
         } else {
37 37
             $userText = "{null}";
38 38
         }
39 39
 
40 40
         //Log when application is first created
41
-        if($application->wasRecentlyCreated) {
41
+        if ($application->wasRecentlyCreated) {
42 42
             $applicationText = "{id=".$application->id.", status=".$application->application_status->name."}";
43 43
 
44
-            Log::notice("Application created: application ".$applicationText." has been created by user ".$userText);
44
+            Log::notice ("Application created: application ".$applicationText." has been created by user ".$userText);
45 45
         }
46 46
         //Log if application status has been changed
47
-        else if ($application->application_status_id != $application->getOriginal('application_status_id')) {
48
-            $freshApplication = $application->fresh();
47
+        else if ($application->application_status_id != $application->getOriginal ('application_status_id')) {
48
+            $freshApplication = $application->fresh ();
49 49
             $applicationText = "{id=".$freshApplication->id."}";
50 50
             $statusText = "{".$freshApplication->application_status->name."}";
51 51
 
52
-            Log::notice("Application status changed: application ".$applicationText." has been changed to ".$statusText." by user ".$userText);
52
+            Log::notice ("Application status changed: application ".$applicationText." has been changed to ".$statusText." by user ".$userText);
53 53
         }
54 54
     }
55 55
 }
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
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function handle(UserUpdated $event)
29 29
     {
30
-        Log::notice("User updated: ".$event->user);
30
+        Log::notice ("User updated: ".$event->user);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Listeners/JobPublished.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
         // If job has just been created, log if its being published now
32 32
         // If job is being modified, only want to log when it goes from unpublished to published
33 33
         if (($job->wasRecentlyCreated && $job->published) ||
34
-                (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal('published'))) {
35
-            Log::notice('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}');
34
+                (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal ('published'))) {
35
+            Log::notice ('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}');
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
app/Listeners/CheckUserRole.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
      */
25 25
     public function handle(UserUpdated $event) : void
26 26
     {
27
-        if ($event->user->isManager() ||
28
-            $event->user->isAdmin()
27
+        if ($event->user->isManager () ||
28
+            $event->user->isAdmin ()
29 29
         ) {
30
-            $managerProfile = Manager::where('user_id', $event->user->id)->first();
30
+            $managerProfile = Manager::where ('user_id', $event->user->id)->first ();
31 31
             if ($managerProfile === null) {
32
-                $managerProfile = new Manager();
32
+                $managerProfile = new Manager ();
33 33
                 $managerProfile->user_id = $event->user->id;
34
-                $managerProfile->save();
34
+                $managerProfile->save ();
35 35
             }
36 36
         }
37 37
     }
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function boot(): void
43 43
     {
44
-        parent::boot();
44
+        parent::boot ();
45 45
 
46 46
         //
47 47
     }
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        Broadcast::routes();
17
+        Broadcast::routes ();
18 18
 
19
-        require base_path('routes/channels.php');
19
+        require base_path ('routes/channels.php');
20 20
     }
21 21
 }
Please login to merge, or discard this patch.