Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Models/Lookup/Frequency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
  * @property \Jenssegers\Date\Date $created_at
13 13
  * @property \Jenssegers\Date\Date $updated_at
14 14
  */
15
-class Frequency extends BaseModel {
15
+class Frequency extends BaseModel{
16 16
 
17 17
     protected $fillable = [];
18 18
 
Please login to merge, or discard this patch.
routes/backpack/custom.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,16 +5,16 @@
 block discarded – undo
5 5
 // --------------------------
6 6
 // This route file is loaded automatically by Backpack\Base.
7 7
 // Routes you generate using Backpack\Generators will be placed here.
8
-Route::group([
9
-    'prefix' => config('backpack.base.route_prefix', 'admin'),
10
-    'middleware' => ['web', config('backpack.base.middleware_key', 'admin')],
8
+Route::group ([
9
+    'prefix' => config ('backpack.base.route_prefix', 'admin'),
10
+    'middleware' => ['web', config ('backpack.base.middleware_key', 'admin')],
11 11
     'namespace' => 'App\Http\Controllers\Admin',
12 12
 ], function () : void {
13 13
     // Custom admin routes.
14
-    Route::crud('skill', 'SkillCrudController');
15
-    Route::crud('job-poster', 'JobPosterCrudController');
16
-    Route::crud('user', 'UserCrudController');
17
-    Route::crud('manager', 'ManagerCrudController');
18
-    Route::crud('department', 'DepartmentCrudController');
19
-    Route::crud('classification', 'ClassificationCrudController');
14
+    Route::crud ('skill', 'SkillCrudController');
15
+    Route::crud ('job-poster', 'JobPosterCrudController');
16
+    Route::crud ('user', 'UserCrudController');
17
+    Route::crud ('manager', 'ManagerCrudController');
18
+    Route::crud ('department', 'DepartmentCrudController');
19
+    Route::crud ('classification', 'ClassificationCrudController');
20 20
 });
Please login to merge, or discard this patch.
app/Notifications/ResetPasswordNotification.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,11 +57,11 @@
 block discarded – undo
57 57
     public function toMail($notifiable)
58 58
     {
59 59
         return (new MailMessage)
60
-            ->subject(Lang::get('common/notifications/password_reset.subject'))
61
-            ->greeting(Lang::get('common/notifications/password_reset.greeting'))
62
-            ->line(Lang::get('common/notifications/password_reset.line_1'))
63
-            ->action(Lang::get('common/notifications/password_reset.action'), url(route('password.reset', $this->token, false)))
64
-            ->line(Lang::get('common/notifications/password_reset.line_2'))
65
-            ->salutation(Lang::get('common/notifications/password_reset.salutation', ['name' => config('mail.from.name')]));
60
+            ->subject (Lang::get ('common/notifications/password_reset.subject'))
61
+            ->greeting (Lang::get ('common/notifications/password_reset.greeting'))
62
+            ->line (Lang::get ('common/notifications/password_reset.line_1'))
63
+            ->action (Lang::get ('common/notifications/password_reset.action'), url (route ('password.reset', $this->token, false)))
64
+            ->line (Lang::get ('common/notifications/password_reset.line_2'))
65
+            ->salutation (Lang::get ('common/notifications/password_reset.salutation', ['name' => config ('mail.from.name')]));
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
app/CRUD/TalentCloudCrudTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
     {
24 24
         // create an instance of the model to be able to get the table name
25 25
         $instance = new static();
26
-        $conn = DB::connection($instance->getConnectionName());
27
-        $table = Config::get('database.connections.'.Config::get('database.default').'.pr e fix').$instance->getTable();
26
+        $conn = DB::connection ($instance->getConnectionName ());
27
+        $table = Config::get ('database.connections.'.Config::get ('database.default').'.pr e fix').$instance->getTable ();
28 28
         // MongoDB columns are alway nullable
29
-        if ($conn->getConfig()['driver'] === 'mongodb') {
29
+        if ($conn->getConfig ()['driver'] === 'mongodb') {
30 30
             return true;
31 31
         }
32 32
         // register the enum, json, jsonb, and citext column types, because Doctrine doesn't support it
33
-        $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
34
-        $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('json', 'json_array');
35
-        $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('jsonb', 'json_array');
36
-        $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('citext', 'string');
37
-        return !$conn->getDoctrineColumn($table, $column_name)->getNotnull();
33
+        $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('enum', 'string');
34
+        $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('json', 'json_array');
35
+        $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('jsonb', 'json_array');
36
+        $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('citext', 'string');
37
+        return !$conn->getDoctrineColumn ($table, $column_name)->getNotnull ();
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
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.