Passed
Push — feature/immutable-application-... ( d4dc87...b29460 )
by Grant
08:27
created
database/seeds/DevSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         factory(JobPoster::class, 3)->state('published')->create([
62 62
             'manager_id' => $managerUser->manager->id
63
-        ])->each(function ($job) : void {
63
+        ])->each(function($job) : void {
64 64
             $job->job_applications()->saveMany(factory(JobApplication::class, 5))->create([
65 65
                 'job_poster_id' => $job->id
66 66
             ]);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         });
75 75
         factory(JobPoster::class, 3)->state('closed')->create([
76 76
             'manager_id' => $managerUser->manager->id
77
-        ])->each(function ($job) : void {
77
+        ])->each(function($job) : void {
78 78
             $job->job_applications()->saveMany(factory(JobApplication::class, 5))->create([
79 79
                 'job_poster_id' => $job->id
80 80
             ]);
Please login to merge, or discard this patch.
routes/backpack/custom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     'prefix' => config('backpack.base.route_prefix', 'admin'),
10 10
     'middleware' => ['web', config('backpack.base.middleware_key', 'admin')],
11 11
     'namespace' => 'App\Http\Controllers\Admin',
12
-], function () : void {
12
+], function() : void {
13 13
     // Custom admin routes.
14 14
     Route::crud('skill', 'SkillCrudController');
15 15
     Route::crud('job-poster', 'JobPosterCrudController');
Please login to merge, or discard this patch.
app/Http/Controllers/Api/CriteriaController.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 class CriteriaController extends Controller
13 13
 {
14 14
 /**
15
-     * Converts a Criteria to the shape sent and recieved by the api.
16
-     *
17
-     * @param Criteria $model
18
-     * @return void
19
-     */
15
+ * Converts a Criteria to the shape sent and recieved by the api.
16
+ *
17
+ * @param Criteria $model
18
+ * @return void
19
+ */
20 20
     public function toApiArray(Criteria $model)
21 21
     {
22 22
         return array_merge($model->toArray(), $model->getTranslationsArray());
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             }
63 63
         }
64 64
 
65
-        $isUnsaved = function ($criteria, $savedIds): bool {
65
+        $isUnsaved = function($criteria, $savedIds): bool {
66 66
             return !array_key_exists('id', $criteria) || !in_array($criteria['id'], $savedIds);
67 67
         };
68 68
 
Please login to merge, or discard this patch.
app/Models/JobPoster.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function submitted_applications() // phpcs:ignore
368 368
     {
369
-        return $this->hasMany(\App\Models\JobApplication::class)->whereDoesntHave('application_status', function ($query): void {
369
+        return $this->hasMany(\App\Models\JobApplication::class)->whereDoesntHave('application_status', function($query): void {
370 370
             $query->where('name', 'draft');
371 371
         });
372 372
     }
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     public function getClassificationMessageAttribute()
556 556
     {
557 557
         if ($this->classification_id !== null && $this->classification_level !== null) {
558
-            return $this->classification->key . '-0' . $this->classification_level;
558
+            return $this->classification->key.'-0'.$this->classification_level;
559 559
         }
560 560
         return null;
561 561
     }
Please login to merge, or discard this patch.
app/Models/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     public function getFullNameAttribute(): string
188 188
     {
189 189
         if ($this->user !== null) {
190
-            return $this->user->first_name . ' ' . $this->user->last_name;
190
+            return $this->user->first_name.' '.$this->user->last_name;
191 191
         }
192 192
         return '';
193 193
     }
Please login to merge, or discard this patch.
app/Listeners/ApplicationStatusChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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 44
             Log::notice("Application created: application ".$applicationText." has been created by user ".$userText);
Please login to merge, or discard this patch.
app/Services/Validation/Rules/LinkedInUrlRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function passes($attribute, $value)
25 25
     {
26
-        return preg_match('/' . self::PATTERN . '/', $value);
26
+        return preg_match('/'.self::PATTERN.'/', $value);
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Spacing   +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/Exceptions/Handler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 'user' => request()->user(),
69 69
                 'requestUrl' => request()->url()
70 70
             ];
71
-            $message = '419 CSRF Token Mismatch. ' . collect($logData)->toJson();
71
+            $message = '419 CSRF Token Mismatch. '.collect($logData)->toJson();
72 72
             Log::debug($message);
73 73
         }
74 74
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             return $exception->render($request);
110 110
         }
111 111
         if ($exception instanceof TokenMismatchException) {
112
-            $newMessage = $exception->getMessage() . ' ' . Lang::get('errors.refresh_page');
112
+            $newMessage = $exception->getMessage().' '.Lang::get('errors.refresh_page');
113 113
             $modifiedException = new TokenMismatchException($newMessage, $exception->getCode(), $exception);
114 114
             return parent::render($request, $modifiedException);
115 115
         }
Please login to merge, or discard this patch.