Passed
Push — chore/update-vscode-eslint-set... ( 921eba )
by Chris
47:37 queued 32:57
created
app/Http/Requests/StoreRatingGuideAnswer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         // Ensure the user can make answers, question exists, and user is the owner of the question it answers.
21 21
         if ($this->user()->can('create', RatingGuideAnswer::class)) {
22
-            $questionId = (int) $this->input('rating_guide_question_id');
22
+            $questionId = (int)$this->input('rating_guide_question_id');
23 23
             if ($questionId) {
24 24
                 $question = RatingGuideQuestion::find($questionId);
25 25
                 return $question && $this->user()->can('update', $question);
Please login to merge, or discard this patch.
app/Http/Requests/SkillCrudRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function rules() : array
26 26
     {
27 27
         return [
28
-            'name' => 'required|unique_translation:skills,name' . (isset($this->id) ? ",{$this->id}" : ''),
28
+            'name' => 'required|unique_translation:skills,name'.(isset($this->id) ? ",{$this->id}" : ''),
29 29
             'description' => 'required',
30 30
             'skill_type_id' => 'exists:skill_types,id'
31 31
         ];
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicantProfileController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $validator->validate($request->all());
133 133
 
134 134
         foreach ($questions as $question) {
135
-            $answerName = $this->answerFormInputName . '.' . $question->id;
135
+            $answerName = $this->answerFormInputName.'.'.$question->id;
136 136
             if ($request->has($answerName)) {
137 137
                 $answer = ApplicantProfileAnswer::where(
138 138
                     [
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 )->first();
143 143
                 if ($answer == null) {
144 144
                     $answer = new ApplicantProfileAnswer();
145
-                    $answer->applicant_id =$applicant->id;
145
+                    $answer->applicant_id = $applicant->id;
146 146
                     $answer->applicant_profile_question_id = $question->id;
147 147
                 }
148 148
                 $answer->answer = $request->input($answerName);
Please login to merge, or discard this patch.
app/Services/Validation/Rules/TwitterHandleRule.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/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     protected function defineGates(): void
67 67
     {
68
-        Gate::define('view-assessment-plan', function ($user, $jobPoster) {
68
+        Gate::define('view-assessment-plan', function($user, $jobPoster) {
69 69
             return $user->isAdmin() ||
70 70
                 $user->isManager() && $jobPoster->manager->user_id === $user->id;
71 71
         });
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton(WhichPortal::class, function ($app) {
33
+        $this->app->singleton(WhichPortal::class, function($app) {
34 34
             return new WhichPortal();
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
app/Http/Controllers/JobController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,12 +126,12 @@
 block discarded – undo
126 126
         // TODO: replace route('manager.show',manager.id) in templates with link using slug.
127 127
         $criteria = [
128 128
             'essential' => $jobPoster->criteria->filter(
129
-                function ($value, $key) {
129
+                function($value, $key) {
130 130
                     return $value->criteria_type->name == 'essential';
131 131
                 }
132 132
             ),
133 133
             'asset' => $jobPoster->criteria->filter(
134
-                function ($value, $key) {
134
+                function($value, $key) {
135 135
                     return $value->criteria_type->name == 'asset';
136 136
                 }
137 137
             ),
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ClassificationCrudController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         // Custom strings to display within the backpack UI.
28 28
         $this->crud->setEntityNameStrings('classification', 'classifications');
29 29
 
30
-        $this->crud->operation(['create', 'update'], function () {
30
+        $this->crud->operation(['create', 'update'], function() {
31 31
             $this->crud->addField([
32 32
                 'name' => 'key',
33 33
                 'type' => 'text',
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SkillCrudController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         // things like Create Skill, Delete Skills, etc.
34 34
         $this->crud->setEntityNameStrings('skill', 'skills');
35 35
 
36
-        $this->crud->operation(['create', 'update'], function () {
36
+        $this->crud->operation(['create', 'update'], function() {
37 37
             // Add custom fields to the create/update views.
38 38
             $this->crud->addField([
39 39
                 'name' => 'name',
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
             'name' => 'name',
106 106
             'type' => 'text',
107 107
             'label' => 'Name',
108
-            'searchLogic' => function ($query, $column, $searchTerm) use ($locale) : void {
109
-                $query->orWhere('name->' . $locale, 'like', "%$searchTerm%");
108
+            'searchLogic' => function($query, $column, $searchTerm) use ($locale) : void {
109
+                $query->orWhere('name->'.$locale, 'like', "%$searchTerm%");
110 110
             },
111
-            'orderLogic' => function ($query, $column, $columnDirection) use ($locale) {
112
-                return $query->orderBy('name->' . $locale, $columnDirection)->select('*');
111
+            'orderLogic' => function($query, $column, $columnDirection) use ($locale) {
112
+                return $query->orderBy('name->'.$locale, $columnDirection)->select('*');
113 113
             }
114 114
         ]);
115 115
 
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
             'name' => 'description',
118 118
             'type' => 'text',
119 119
             'label' => 'Description',
120
-            'searchLogic' => function ($query, $column, $searchTerm) use ($locale) : void {
121
-                $query->orWhere('description->' . $locale, 'like', "%$searchTerm%");
120
+            'searchLogic' => function($query, $column, $searchTerm) use ($locale) : void {
121
+                $query->orWhere('description->'.$locale, 'like', "%$searchTerm%");
122 122
             },
123 123
             'orderable' => false,
124 124
         ]);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             'type' => 'text',
130 130
             'label' => 'Type',
131 131
             'orderable' => true,
132
-            'orderLogic' => function ($query, $column, $columnDirection) use ($locale) {
132
+            'orderLogic' => function($query, $column, $columnDirection) use ($locale) {
133 133
                 return $query->orderBy('skill_type_id', $columnDirection)->select('*');
134 134
             }
135 135
         ]);
@@ -163,13 +163,13 @@  discard block
 block discarded – undo
163 163
             'key' => 'classifications_filter',
164 164
             'type' => 'select2_multiple',
165 165
             'label' => 'Filter by classification'
166
-        ], function () {
166
+        ], function() {
167 167
             // The options that show up in the select2.
168 168
             return Classification::all()->pluck('key', 'id')->toArray();
169
-        }, function ($values) {
169
+        }, function($values) {
170 170
             // If the filter is active.
171 171
             foreach (json_decode($values) as $key => $value) {
172
-                $this->crud->query = $this->crud->query->whereHas('classifications', function ($query) use ($value) {
172
+                $this->crud->query = $this->crud->query->whereHas('classifications', function($query) use ($value) {
173 173
                     $query->where('id', $value);
174 174
                 });
175 175
             }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
                 'label'=> 'No classification'
184 184
             ],
185 185
             false,
186
-            function () {
186
+            function() {
187 187
                 $this->crud->query = $this->crud->query->doesntHave('classifications');
188 188
             }
189 189
         );
Please login to merge, or discard this patch.