Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
app/Http/Controllers/Api/CriteriaController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function indexByJob(JobPoster $jobPoster)
32 32
     {
33
-        $toApiArray = array($this, 'toApiArray');
33
+        $toApiArray = array ($this, 'toApiArray');
34 34
         $criteriaAray = Criteria::where('job_poster_id', $jobPoster->id)->get()->map($toApiArray);
35 35
         return response()->json($criteriaAray);
36 36
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function batchUpdate(Request $request, JobPoster $jobPoster)
46 46
     {
47
-        $toApiArray = array($this, 'toApiArray');
47
+        $toApiArray = array ($this, 'toApiArray');
48 48
 
49 49
         $newCriteria = collect($request->input()); // TODO: switch to validated
50 50
         $oldCriteria = $jobPoster->criteria;
@@ -62,7 +62,7 @@  discard block
 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
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $newSkillId = null,
164 164
         $newSkillLevelId = null,
165 165
         $newCriteriaTypeId = null
166
-    ) {
166
+    ){
167 167
         $notification = new AssessmentPlanNotification();
168 168
         $notification->job_poster_id = $criteria->job_poster_id;
169 169
         $notification->type = $type;
Please login to merge, or discard this patch.
app/Http/Controllers/Api/JobApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $criteria = Criteria::where('job_poster_id', $job->id)->get();
39 39
 
40
-        $toApiArray = function ($model) {
40
+        $toApiArray = function($model){
41 41
             return array_merge($model->toArray(), $model->getTranslationsArray());
42 42
         };
43 43
         $criteriaTranslated = $criteria->map($toApiArray);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'type' => 'closure',
64 64
             'label' => 'Manager',
65 65
             'orderable' => false,
66
-            'function' => function ($entry) {
66
+            'function' => function($entry){
67 67
                 return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>';
68 68
             }
69 69
         ]);
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
             'name' => 'departments',
85 85
             'type' => 'select2_multiple',
86 86
             'label' => 'Departments'
87
-        ], function () {
87
+        ], function(){
88 88
             return Department::all()->pluck('name', 'id')->toArray();
89
-        }, function ($values) {
90
-            $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) {
89
+        }, function($values){
90
+            $this->crud->addClause('WhereHas', 'department', function($query) use ($values) {
91 91
                 foreach (json_decode($values) as $key => $value) {
92 92
                     if ($key === 0) {
93 93
                         $query->where('id', $value);
Please login to merge, or discard this patch.