Passed
Push — task/number-of-applicants ( 2ef157 )
by Grant
06:53
created
app/Providers/ViewComposerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         );
64 64
 
65 65
         View::composer(
66
-            ['common/relatives','common/reference','common/relatives-projects',
66
+            ['common/relatives', 'common/reference', 'common/relatives-projects',
67 67
                 'common/sample', 'common/skill', 'common/modals/create_reference'],
68 68
             'App\Http\ViewComposers\RelativeComposer'
69 69
         );
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -263,10 +263,10 @@  discard block
 block discarded – undo
263 263
     }
264 264
 
265 265
     /**
266
-    * Check if the user has the specified role.
267
-    * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
268
-    * @return boolean
269
-    */
266
+     * Check if the user has the specified role.
267
+     * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
268
+     * @return boolean
269
+     */
270 270
     public function hasRole($role)
271 271
     {
272 272
         switch ($role) {
@@ -287,8 +287,8 @@  discard block
 block discarded – undo
287 287
      * Set this user to the specified role.
288 288
      *
289 289
      * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
290
-    * @return void
291
-    */
290
+     * @return void
291
+     */
292 292
     public function setRole(string $role): void
293 293
     {
294 294
         $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
             'function' =>
80 80
                 function ($entry) {
81 81
                     return $entry->submitted_applications_count() > 0 ?
82
-                        '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="fa fa-external-link"></i>)</a>' :
83
-                        $entry->submitted_applications_count();
82
+                        '<a target="_blank" href="' . route('manager.jobs.applications', $entry->id) . '">' . $entry->submitted_applications_count() . ' (View <i class="fa fa-external-link"></i>)</a>' : $entry->submitted_applications_count();
84 83
                 }
85 84
         ]);
86 85
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/CommentApiController.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function indexByJob(JobPoster $jobPoster)
23 23
     {
24
-          $comments = Comment::where('job_poster_id', $jobPoster->id)->get();
25
-          return response()->json(new ResourceCollection($comments));
24
+            $comments = Comment::where('job_poster_id', $jobPoster->id)->get();
25
+            return response()->json(new ResourceCollection($comments));
26 26
     }
27 27
 
28 28
     /**
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function store(StoreComment $request, JobPoster $jobPoster)
36 36
     {
37
-          $data = $request->validated();
38
-          $comment = new Comment();
39
-          $comment->user_id = $request->user()->id;
40
-          $comment->job_poster_id = $jobPoster->id;
41
-          $comment->fill($data);
42
-          $comment->save();
43
-          return response()->json(new JsonResource($comment));
37
+            $data = $request->validated();
38
+            $comment = new Comment();
39
+            $comment->user_id = $request->user()->id;
40
+            $comment->job_poster_id = $jobPoster->id;
41
+            $comment->fill($data);
42
+            $comment->save();
43
+            return response()->json(new JsonResource($comment));
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
app/Models/JobPoster.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -566,7 +566,7 @@
 block discarded – undo
566 566
             return 1; // Draft.
567 567
         } elseif ($this->published_at === null) {
568 568
             return 2; // Review requested, but not approved.
569
-        } elseif ($this->open_date_time === null || $this->open_date_time >$now) {
569
+        } elseif ($this->open_date_time === null || $this->open_date_time > $now) {
570 570
             return 3; // Approved, but not open.
571 571
         } elseif ($this->close_date_time === null || $this->close_date_time > $now) {
572 572
             // Approved and currently open.
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
         ->name('api.jobs.submit');
656 656
     Route::resource('jobs', 'Api\JobApiController')->only([
657 657
         'show', 'store', 'update', 'index'
658
-    ])->names([ // Specify custom names because default names collied with existing routes.
658
+    ])->names([// Specify custom names because default names collied with existing routes.
659 659
         'show' => 'api.jobs.show',
660 660
         'store' => 'api.jobs.store',
661 661
         'update' => 'api.jobs.update',
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
 
665 665
     Route::resource('managers', 'Api\ManagerApiController')->only([
666 666
         'show', 'update'
667
-    ])->names([ // Specify custom names because default names collied with existing routes.
667
+    ])->names([// Specify custom names because default names collied with existing routes.
668 668
         'show' => 'api.managers.show',
669 669
         'update' => 'api.managers.update'
670 670
     ]);
Please login to merge, or discard this patch.