Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
app/Models/User.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-    * Check if the user has the specified role.
177
-    * @param string $role This may be either 'applicant', 'manager' or 'admin'.
178
-    * @return boolean
179
-    */
176
+     * Check if the user has the specified role.
177
+     * @param string $role This may be either 'applicant', 'manager' or 'admin'.
178
+     * @return boolean
179
+     */
180 180
     public function hasRole($role)
181 181
     {
182 182
         switch ($role) {
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
      * Set this user to the specified role.
196 196
      *
197 197
      * @param string $role Must be either 'applicant', 'manager' or 'admin.
198
-    * @return void
199
-    */
198
+     * @return void
199
+     */
200 200
     public function setRole(string $role): void
201 201
     {
202 202
         $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      * Returns a user's full name.
232 232
      *
233 233
      * @return string
234
-    */
234
+     */
235 235
     public function getFullNameAttribute(): string
236 236
     {
237 237
         return $this->first_name . ' ' . $this->last_name;
Please login to merge, or discard this patch.
routes/web.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -480,7 +480,7 @@
 block discarded – undo
480 480
         ->middleware('can:update,jobPoster');
481 481
 
482 482
 
483
-     Route::get('jobs/{jobPoster}/criteria', 'Api\CriteriaController@indexByJob')
483
+        Route::get('jobs/{jobPoster}/criteria', 'Api\CriteriaController@indexByJob')
484 484
         ->where('jobPoster', '[0-9]+')
485 485
         ->middleware('can:view,jobPoster');
486 486
     Route::put('jobs/{jobPoster}/criteria', 'Api\CriteriaController@batchUpdate')
Please login to merge, or discard this patch.
app/Services/Validation/Rules/CourseValidator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
         // Validate basic data is filled in
29 29
         Validator::make($courseValidator->getAttributes(), [
30 30
             'applicant_id' => [
31
-             'required',
31
+                'required',
32 32
                 Rule::in($applicant_ids->toArray()),
33 33
             ],
34
-             'course_status_id' => [
35
-             'required',
34
+                'course_status_id' => [
35
+                'required',
36 36
                 Rule::in($this->course_status_ids->toArray()),
37 37
             ]
38 38
          
Please login to merge, or discard this patch.
app/Services/Validation/Rules/DegreeValidator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
         Validator::make($degreeValidator->getAttributes(), [
29 29
             'applicant_id' => [
30 30
             'required',
31
-               Rule::in($applicant_ids->toArray()),
31
+                Rule::in($applicant_ids->toArray()),
32 32
             ],
33 33
             'degree_type_id' => [
34 34
             'required',
35
-               Rule::in($this->degree_type_id->toArray()),
35
+                Rule::in($this->degree_type_id->toArray()),
36 36
             ]
37 37
 
38 38
         ])->validate();
Please login to merge, or discard this patch.
app/Services/Validation/Rules/WorkSamplesValidator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
         Validator::make($workSamplesValidator->getAttributes(), [
27 27
             'applicant_id' => [
28 28
             'required',
29
-               Rule::in($applicant_ids->toArray()),
29
+                Rule::in($applicant_ids->toArray()),
30 30
             ],
31 31
             'file_type_id' => [
32 32
             'required',
33
-               Rule::in($this->file_type_id->toArray()),
33
+                Rule::in($this->file_type_id->toArray()),
34 34
             ]
35 35
        
36 36
         ])->validate();
Please login to merge, or discard this patch.
app/Http/Controllers/Api/CriteriaController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 class CriteriaController extends Controller
13 13
 {
14 14
 /**
15
-     * Converts a Criteria to the shape sent and recieved by the api.
16
-     *
17
-     * @param Criteria $model
18
-     * @return void
19
-     */
15
+ * Converts a Criteria to the shape sent and recieved by the api.
16
+ *
17
+ * @param Criteria $model
18
+ * @return void
19
+ */
20 20
     public function toApiArray(Criteria $model)
21 21
     {
22 22
         return array_merge($model->toArray(), $model->getTranslationsArray());
Please login to merge, or discard this patch.