Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
app/Http/Controllers/Api/JobApiController.php 1 patch
Braces   +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
Braces   +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.