Passed
Push — feature/add-2fa-support ( f7b805...d20abf )
by Grant
18:01 queued 08:21
created
app/Http/Controllers/Admin/JobPosterCrudController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,8 +177,8 @@
 block discarded – undo
177 177
             'type' => 'date_picker',
178 178
             'label' => 'Letter of Offer Issuance Date',
179 179
             'date_picker_options' => [
180
-               'todayBtn' => 'linked',
181
-               'format' => 'yyyy-mm-dd',
180
+                'todayBtn' => 'linked',
181
+                'format' => 'yyyy-mm-dd',
182 182
             ],
183 183
         ]);
184 184
         if ($this->crud->getCurrentEntry() &&
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
             'type' => 'closure',
64 64
             'label' => 'Manager',
65 65
             'orderable' => false,
66
-            'function' => function ($entry) {
67
-                return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>';
66
+            'function' => function($entry) {
67
+                return '<a href="'.route('manager.profile.edit', $entry->manager->user->id).'" target="_blank">'.$entry->manager->user->full_name.'</a>';
68 68
             }
69 69
         ]);
70 70
         $this->crud->addColumn([
@@ -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.
app/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         $rotatedArray = [];
109 109
         foreach ($expandedArray as $item) {
110
-            for ($i=0; $i<$steps; $i++) {
110
+            for ($i = 0; $i < $steps; $i++) {
111 111
                 array_push($item['keys'], array_shift($item['keys']));
112 112
             }
113 113
             $rotatedArray[] = $item;
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
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
         Validator::make($workSamplesValidator->getAttributes(), [
26 26
             'applicant_id' => [
27 27
             'required',
28
-               Rule::in($applicant_ids->toArray()),
28
+                Rule::in($applicant_ids->toArray()),
29 29
         ],  
30 30
             'file_type_id' => [
31 31
             'required',
32
-               Rule::in($this->file_type_id->toArray()),
32
+                Rule::in($this->file_type_id->toArray()),
33 33
         ]           
34 34
        
35 35
         ])->validate();
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
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
         Validator::make($degreeValidator->getAttributes(), [
28 28
             'applicant_id' => [
29 29
             'required',
30
-               Rule::in($applicant_ids->toArray()),
30
+                Rule::in($applicant_ids->toArray()),
31 31
         ],
32 32
             'degree_type_id' => [
33 33
             'required',
34
-               Rule::in($this->degree_type_id->toArray()),
34
+                Rule::in($this->degree_type_id->toArray()),
35 35
         ]
36 36
 
37 37
         ])->validate();
Please login to merge, or discard this patch.
app/Services/Validation/Rules/CourseValidator.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
         //Validate basic data is filled in
26 26
         Validator::make($courseValidator->getAttributes(), [ 
27 27
             'applicant_id' => [
28
-             'required',
28
+                'required',
29 29
                 Rule::in($applicant_ids->toArray()),
30
-       ],
31
-             'course_status_id' => [
32
-             'required',
30
+        ],
31
+                'course_status_id' => [
32
+                'required',
33 33
                 Rule::in($this->course_status_ids->toArray()),    
34
-     ]
34
+        ]
35 35
          
36 36
         ])->validate();
37 37
     }
Please login to merge, or discard this patch.
app/Utilities/HandleNullState.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function getFunctions(): array
14 14
     {
15 15
         return [
16
-          new Twig_SimpleFunction('handleNullState', [$this, 'handleNullState']),
16
+            new Twig_SimpleFunction('handleNullState', [$this, 'handleNullState']),
17 17
         ];
18 18
     }
19 19
 
Please login to merge, or discard this patch.
app/Models/Criteria.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
  * @property string $level_description The localized description of the skill level (accounts for skill type).
29 29
  *
30 30
  *  Localized Properties:
31
-  * @property string $description
32
-  * @property string $specificity
31
+ * @property string $description
32
+ * @property string $specificity
33 33
  */
34 34
 class Criteria extends BaseModel
35 35
 {
Please login to merge, or discard this patch.
app/Models/BaseModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use Jenssegers\Date\Date;
10 10
 use DateTime;
11 11
 
12
-abstract class BaseModel extends Eloquent {
12
+abstract class BaseModel extends Eloquent{
13 13
     //Override date functions to return Jenssegers Data instead of Carbon
14 14
 
15 15
     /**
Please login to merge, or discard this patch.
app/Models/Lookup/Frequency.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
  * @property \Jenssegers\Date\Date $created_at
13 13
  * @property \Jenssegers\Date\Date $updated_at
14 14
  */
15
-class Frequency extends BaseModel {
15
+class Frequency extends BaseModel{
16 16
 
17 17
     protected $fillable = [];
18 18
 
Please login to merge, or discard this patch.