Passed
Push — task/upgrade-to-laravel-8 ( 817003...d670e8 )
by
unknown
04:53
created
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/Http/Controllers/Admin/JobPosterStatusTransitionCrudController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 'limit' => 120,
41 41
             ]);
42 42
 
43
-            $this->crud->addField([  // Select
43
+            $this->crud->addField([// Select
44 44
                 'label' => 'Owner User Role',
45 45
                 'type' => 'select',
46 46
                 'name' => 'owner_user_role_id', // the db column for the foreign key
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 'attributes' => ['disabled' => 'disabled']
51 51
             ]);
52 52
 
53
-            $this->crud->addField([  // Select
53
+            $this->crud->addField([// Select
54 54
                 'label' => 'From Status',
55 55
                 'type' => 'select',
56 56
                 'name' => 'from_job_poster_status_id', // the db column for the foreign key
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 'attributes' => ['disabled' => 'disabled']
61 61
             ]);
62 62
 
63
-            $this->crud->addField([  // Select
63
+            $this->crud->addField([// Select
64 64
                 'label' => 'To Status',
65 65
                 'type' => 'select',
66 66
                 'name' => 'to_job_poster_status_id', // the db column for the foreign key
Please login to merge, or discard this patch.
app/Http/Controllers/Api/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 $ids = explode(',', $ids);
48 48
                 if ($ids) {
49 49
                     array_map(function ($v) {
50
-                        return (int) $v;
50
+                        return (int)$v;
51 51
                     }, $ids);
52 52
                     $users = User::whereIn('id', $ids)->with(['applicant', 'manager', 'hr_advisor'])->get();
53 53
                 }
Please login to merge, or discard this patch.
app/Services/Validation/ApplicationValidator.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
 class ApplicationValidator
13 13
 {
14 14
 
15
-    public $backendRules =  [
15
+    public $backendRules = [
16 16
         'job_poster_id' => 'required',
17 17
         'application_status_id' => 'required',
18 18
         'applicant_id' => 'required',
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicationByJobController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -947,7 +947,7 @@
 block discarded – undo
947 947
      * @param  \App\Models\JobPoster $jobPoster        Incoming Job Poster object.
948 948
      * @param  string                $application_step Current step in application.
949 949
      * @return array
950
-    */
950
+     */
951 951
     public function customBreadcrumbs(JobPoster $jobPoster, string $application_step)
952 952
     {
953 953
         $step_lang = Lang::get('applicant/application_template.tracker_label');
Please login to merge, or discard this patch.
app/Services/Validation/SkillDeclarationValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      * Skill declaration validator constructor.
33 33
      * @param SkillDeclaration $skillDeclaration The skill declaration input data.
34 34
      * @return ValidationValidator
35
-    */
35
+     */
36 36
     public function validator(SkillDeclaration $skillDeclaration)
37 37
     {
38 38
         $uniqueSkillRule = new UniqueSkillDeclarationRule($skillDeclaration->skillable->skill_declarations, $skillDeclaration->id);
Please login to merge, or discard this patch.
app/Http/Controllers/ManagerProfileController.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
      *
25 25
      * @param  \Illuminate\Http\Request $request Incoming Request.
26 26
      * @param  \App\Models\JobPoster    $jobPoster Incoming JobPoster object.
27
-
28 27
      * @return \Illuminate\Http\Response
29 28
      */
30 29
     public function show(Request $request, JobPoster $jobPoster)
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobApplicationCrudController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             'label' => 'Job Poster Title',
41 41
             'searchLogic' => function ($query, $column, $searchTerm) {
42 42
                 $query->orWhereHas('job_poster', function ($q) use ($searchTerm) {
43
-                    $q->where('title', 'ilike', '%'.$searchTerm.'%');
43
+                    $q->where('title', 'ilike', '%' . $searchTerm . '%');
44 44
                 });
45 45
             }
46 46
         ]);
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
             'label' => 'Applicant Name',
52 52
             'searchLogic' => function ($query, $column, $searchTerm) {
53 53
                 $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) {
54
-                    $q->where('first_name', 'ilike', '%'.$searchTerm.'%')
55
-                    ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%');
54
+                    $q->where('first_name', 'ilike', '%' . $searchTerm . '%')
55
+                    ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%');
56 56
                 });
57 57
             }
58 58
         ]);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'label' => 'Applicant Email',
64 64
             'searchLogic' => function ($query, $column, $searchTerm) {
65 65
                 $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) {
66
-                    $q->where('email', 'ilike', '%'.$searchTerm.'%');
66
+                    $q->where('email', 'ilike', '%' . $searchTerm . '%');
67 67
                 });
68 68
             }
69 69
         ]);
Please login to merge, or discard this patch.
app/Http/Controllers/ResourcesController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
             $files = Resource::all();
30 30
             foreach ($files as $file) {
31 31
                 array_push($resources, [
32
-                  'link' => asset(Storage::url($file->file)),
33
-                  'title' => '',
34
-                  'text' => $file->name,
32
+                    'link' => asset(Storage::url($file->file)),
33
+                    'title' => '',
34
+                    'text' => $file->name,
35 35
                 ]);
36 36
             }
37 37
 
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
         $portal = WhichPortal::isHrPortal() ? 'hr' : 'manager';
45 45
 
46 46
         return view('common/resources', [
47
-          // Localized strings.
48
-          'resources_template' => $resources_template,
49
-          'portal' => $portal,
50
-          // List of resource downloads.
51
-          'resources' => $resources,
47
+            // Localized strings.
48
+            'resources_template' => $resources_template,
49
+            'portal' => $portal,
50
+            // List of resource downloads.
51
+            'resources' => $resources,
52 52
         ]);
53 53
     }
54 54
 }
Please login to merge, or discard this patch.