Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Models/Lookup/ApplicationStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     public function job_applications() //phpcs:ignore
30 30
     {
31
-        return $this->hasMany(\App\Models\JobApplication::class);
31
+        return $this->hasMany (\App\Models\JobApplication::class);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Models/Lookup/Province.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     public function job_posters() //phpcs:ignore
30 30
     {
31
-        return $this->hasMany(\App\Models\JobPoster::class);
31
+        return $this->hasMany (\App\Models\JobPoster::class);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Models/Lookup/JobPosterStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
 
30 30
     public function job_posters() // phpcs:ignore
31 31
     {
32
-        return $this->hasMany(\App\Models\JobPoster::class);
32
+        return $this->hasMany (\App\Models\JobPoster::class);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
app/Models/Lookup/JobTerm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     public function job_posters() //phpcs:ignore
30 30
     {
31
-        return $this->hasMany(\App\Models\JobPoster::class);
31
+        return $this->hasMany (\App\Models\JobPoster::class);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Http/Requests/ClassificationCrudRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function authorize() : bool
15 15
     {
16 16
         // Only allow updates if the user is a logged in Admin.
17
-        return backpack_auth()->check();
17
+        return backpack_auth ()->check ();
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/AssessmentController.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -18,33 +18,33 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function store(Request $request)
20 20
     {
21
-        $this->authorize('create', Assessment::class);
21
+        $this->authorize ('create', Assessment::class);
22 22
 
23 23
         try {
24
-            $criterion_id = (int)$request->json('criterion_id');
25
-            $assessment_type_id = (int)$request->json('assessment_type_id');
26
-            $criteria = Criteria::findOrFail($criterion_id);
27
-            AssessmentType::findOrFail($assessment_type_id);
24
+            $criterion_id = (int)$request->json ('criterion_id');
25
+            $assessment_type_id = (int)$request->json ('assessment_type_id');
26
+            $criteria = Criteria::findOrFail ($criterion_id);
27
+            AssessmentType::findOrFail ($assessment_type_id);
28 28
 
29
-            $assessment = new Assessment([
29
+            $assessment = new Assessment ([
30 30
                 'criterion_id' => $criterion_id,
31 31
                 'assessment_type_id' => $assessment_type_id
32 32
             ]);
33 33
             // Check that this user is allowed to create an Assessment for this criterion.
34
-            $this->authorize('update', $assessment);
34
+            $this->authorize ('update', $assessment);
35 35
 
36
-            $assessment->save();
37
-            $assessment->refresh();
38
-            $assessment['criteria'] = $criteria->toArray();
36
+            $assessment->save ();
37
+            $assessment->refresh ();
38
+            $assessment['criteria'] = $criteria->toArray ();
39 39
         } catch (\Exception $e) {
40
-            return response()->json([
41
-                'error' => $e->getMessage()
40
+            return response ()->json ([
41
+                'error' => $e->getMessage ()
42 42
             ], 400);
43 43
         }
44 44
 
45 45
         return [
46 46
             'success' => "Successfully created assessment $assessment->id",
47
-            'assessment' => $assessment->toArray()
47
+            'assessment' => $assessment->toArray ()
48 48
         ];
49 49
     }
50 50
 
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function show(Assessment $assessment)
58 58
     {
59
-        $this->authorize('view', $assessment);
60
-        $criteria = Criteria::find($assessment->id);
61
-        $assessment['criteria'] = $criteria->toArray();
62
-        return $assessment->toArray();
59
+        $this->authorize ('view', $assessment);
60
+        $criteria = Criteria::find ($assessment->id);
61
+        $assessment['criteria'] = $criteria->toArray ();
62
+        return $assessment->toArray ();
63 63
     }
64 64
 
65 65
     /**
@@ -71,26 +71,26 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function update(Request $request, Assessment $assessment)
73 73
     {
74
-        $this->authorize('update', $assessment);
74
+        $this->authorize ('update', $assessment);
75 75
         try {
76
-            $criterion_id = (int)$request->json('criterion_id');
77
-            $assessment_type_id = (int)$request->json('assessment_type_id');
78
-            $criteria = Criteria::findOrFail($criterion_id);
79
-            AssessmentType::findOrFail($assessment_type_id);
76
+            $criterion_id = (int)$request->json ('criterion_id');
77
+            $assessment_type_id = (int)$request->json ('assessment_type_id');
78
+            $criteria = Criteria::findOrFail ($criterion_id);
79
+            AssessmentType::findOrFail ($assessment_type_id);
80 80
 
81 81
             $assessment->criterion_id = $criterion_id;
82 82
             $assessment->assessment_type_id = $assessment_type_id;
83
-            $assessment->save();
84
-            $assessment['criteria'] = $criteria->toArray();
83
+            $assessment->save ();
84
+            $assessment['criteria'] = $criteria->toArray ();
85 85
         } catch (\Exception $e) {
86
-            return response()->json([
87
-                'error' => $e->getMessage()
86
+            return response ()->json ([
87
+                'error' => $e->getMessage ()
88 88
             ], 400);
89 89
         }
90 90
 
91 91
         return [
92 92
             'success' => "Successfully updated assessment $assessment->id",
93
-            'assessment' => $assessment->toArray(),
93
+            'assessment' => $assessment->toArray (),
94 94
         ];
95 95
     }
96 96
 
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function destroy(Assessment $assessment)
104 104
     {
105
-        $this->authorize('delete', $assessment);
106
-        $assessment->delete();
105
+        $this->authorize ('delete', $assessment);
106
+        $assessment->delete ();
107 107
 
108 108
         return [
109 109
             'success' => "Successfully deleted assessment $assessment->id"
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicationController.php 1 patch
Spacing   +26 added lines, -27 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function index()
21 21
     {
22
-        $applications = Auth::user()->applicant->job_applications;
23
-        return view(
22
+        $applications = Auth::user ()->applicant->job_applications;
23
+        return view (
24 24
             'applicant/application_index',
25 25
             [
26
-                'application_index' => Lang::get('applicant/application_index'),
26
+                'application_index' => Lang::get ('applicant/application_index'),
27 27
                 'applications' => $applications,
28
-                'departments_template' => Lang::get('common/lookup/departments'),
28
+                'departments_template' => Lang::get ('common/lookup/departments'),
29 29
                 'manager_profile_photo' => '/images/user.png', // TODO: get real photo.
30 30
             ]
31 31
         );
@@ -40,48 +40,47 @@  discard block
 block discarded – undo
40 40
     public function show(JobApplication $application)
41 41
     {
42 42
         $criteria = [
43
-            'essential' => $application->job_poster->criteria->filter(function ($value, $key) {
43
+            'essential' => $application->job_poster->criteria->filter (function ($value, $key){
44 44
                 return $value->criteria_type->name == 'essential';
45 45
             }),
46
-            'asset' => $application->job_poster->criteria->filter(function ($value, $key) {
46
+            'asset' => $application->job_poster->criteria->filter (function ($value, $key){
47 47
                 return $value->criteria_type->name == 'asset';
48 48
             }),
49 49
         ];
50 50
 
51 51
         // Display slightly different views on different portals.
52
-        $view = WhichPortal::isManagerPortal() ?
53
-            'manager/application_post' :
54
-            'applicant/application_preview';
52
+        $view = WhichPortal::isManagerPortal () ?
53
+            'manager/application_post' : 'applicant/application_preview';
55 54
 
56
-        if (WhichPortal::isManagerPortal()) {
55
+        if (WhichPortal::isManagerPortal ()) {
57 56
             // Load things required for review component.
58
-            $application->load(['veteran_status', 'citizenship_declaration', 'application_review', 'applicant.user']);
57
+            $application->load (['veteran_status', 'citizenship_declaration', 'application_review', 'applicant.user']);
59 58
         }
60 59
 
61
-        return view(
60
+        return view (
62 61
             $view,
63 62
             [
64 63
                 // Localized strings.
65
-                'post' => Lang::get('manager/application_post'), // Change text
66
-                'is_manager_view' => WhichPortal::isManagerPortal(),
64
+                'post' => Lang::get ('manager/application_post'), // Change text
65
+                'is_manager_view' => WhichPortal::isManagerPortal (),
67 66
                 // Application Template Data.
68
-                'application_template' => Lang::get('applicant/application_template'),
67
+                'application_template' => Lang::get ('applicant/application_template'),
69 68
                 'application_preview' => true,
70
-                'preferred_language_template' => Lang::get('common/preferred_language'),
71
-                'citizenship_declaration_template' => Lang::get('common/citizenship_declaration'),
72
-                'veteran_status_template' => Lang::get('common/veteran_status'),
69
+                'preferred_language_template' => Lang::get ('common/preferred_language'),
70
+                'citizenship_declaration_template' => Lang::get ('common/citizenship_declaration'),
71
+                'veteran_status_template' => Lang::get ('common/veteran_status'),
73 72
                 // Job Data.
74 73
                 'job' => $application->job_poster,
75 74
                 // Skills Data.
76
-                'skills' => Skill::all(),
77
-                'skill_template' => Lang::get('common/skills'),
78
-                'reference_template' => Lang::get('common/references'),
79
-                'sample_template' => Lang::get('common/work_samples'),
75
+                'skills' => Skill::all (),
76
+                'skill_template' => Lang::get ('common/skills'),
77
+                'reference_template' => Lang::get ('common/references'),
78
+                'sample_template' => Lang::get ('common/work_samples'),
80 79
                 'criteria' => $criteria,
81 80
                 // Applicant Data.
82 81
                 'applicant' => $application->applicant,
83 82
                 'job_application' => $application,
84
-                'review_statuses' => ReviewStatus::all(),
83
+                'review_statuses' => ReviewStatus::all (),
85 84
             ]
86 85
         );
87 86
     }
@@ -95,16 +94,16 @@  discard block
 block discarded – undo
95 94
      */
96 95
     public function destroy(Request $request, JobApplication $application)
97 96
     {
98
-        $this->authorize('delete', $application);
97
+        $this->authorize ('delete', $application);
99 98
 
100
-        $application->delete();
99
+        $application->delete ();
101 100
 
102
-        if ($request->ajax()) {
101
+        if ($request->ajax ()) {
103 102
             return [
104 103
                 'message' => 'Application deleted'
105 104
             ];
106 105
         }
107 106
 
108
-        return redirect()->back();
107
+        return redirect ()->back ();
109 108
     }
110 109
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function setup() : void
22 22
     {
23
-        $this->crud->setModel('App\Models\JobPoster');
24
-        $this->crud->setRoute('admin/job-poster');
25
-        $this->crud->setEntityNameStrings('Job Poster', 'Job Posters');
23
+        $this->crud->setModel ('App\Models\JobPoster');
24
+        $this->crud->setRoute ('admin/job-poster');
25
+        $this->crud->setEntityNameStrings ('Job Poster', 'Job Posters');
26 26
 
27
-        if (!$this->request->has('order')) {
28
-            $this->crud->orderBy('close_date_time', 'desc');
27
+        if (!$this->request->has ('order')) {
28
+            $this->crud->orderBy ('close_date_time', 'desc');
29 29
         }
30 30
     }
31 31
 
@@ -33,60 +33,60 @@  discard block
 block discarded – undo
33 33
     {
34 34
         // Required for order logic.
35 35
         $locale = 'en';
36
-        if (null !== $this->request->input('locale')) {
37
-            $locale = $this->request->input('locale');
36
+        if (null !== $this->request->input ('locale')) {
37
+            $locale = $this->request->input ('locale');
38 38
         }
39
-        App::setLocale($locale);
39
+        App::setLocale ($locale);
40 40
 
41 41
         // Add the custom blade buttons found in resources/views/vendor/backpack/crud/buttons/.
42
-        $this->crud->addButtonFromView('line', 'job_admin_edit', 'job_admin_edit', 'end');
43
-        $this->crud->addButtonFromView('line', 'spb_link', 'spb_link', 'end');
44
-        $this->crud->addButtonFromView('line', 'jpb_link', 'jpb_link', 'end');
45
-        $this->crud->addButtonFromView('line', 'job_poster_link', 'job_poster_link', 'end');
42
+        $this->crud->addButtonFromView ('line', 'job_admin_edit', 'job_admin_edit', 'end');
43
+        $this->crud->addButtonFromView ('line', 'spb_link', 'spb_link', 'end');
44
+        $this->crud->addButtonFromView ('line', 'jpb_link', 'jpb_link', 'end');
45
+        $this->crud->addButtonFromView ('line', 'job_poster_link', 'job_poster_link', 'end');
46 46
 
47 47
 
48
-        $this->crud->addColumn([
48
+        $this->crud->addColumn ([
49 49
             'name' => 'id',
50 50
             'type' => 'number',
51 51
             'label' => 'ID'
52 52
         ]);
53
-        $this->crud->addColumn([
53
+        $this->crud->addColumn ([
54 54
             'name' => 'title',
55 55
             'type' => 'text',
56 56
             'label' => 'Title',
57 57
             'searchLogic' => function ($query, $column, $searchTerm) use ($locale) : void {
58
-                $query->orWhere('title->' . $locale, 'ilike', "%$searchTerm%");
58
+                $query->orWhere ('title->'.$locale, 'ilike', "%$searchTerm%");
59 59
             },
60 60
             'orderLogic' => function ($query, $column, $columnDirection) use ($locale) {
61
-                return $query->orderBy('title->' . $locale, $columnDirection)->select('*');
61
+                return $query->orderBy ('title->'.$locale, $columnDirection)->select ('*');
62 62
             }
63 63
         ]);
64
-        $this->crud->addColumn([
64
+        $this->crud->addColumn ([
65 65
             'name' => 'status',
66 66
             'label' => 'Status',
67 67
             'type' => 'model_function',
68 68
             'function_name' => 'status'
69 69
         ]);
70
-        $this->crud->addColumn([
70
+        $this->crud->addColumn ([
71 71
             'name' => 'published',
72 72
             'label' => 'Published',
73 73
             'type' => 'check',
74 74
         ]);
75
-        $this->crud->addColumn([
75
+        $this->crud->addColumn ([
76 76
             'name' => 'manager_user_name',
77 77
             'type' => 'closure',
78 78
             'label' => 'Manager',
79 79
             'orderable' => false,
80
-            'function' => function ($entry) {
81
-                return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>';
80
+            'function' => function ($entry){
81
+                return '<a href="'.route ('manager.profile.edit', $entry->manager->user->id).'" target="_blank">'.$entry->manager->user->full_name.'</a>';
82 82
             }
83 83
         ]);
84
-        $this->crud->addColumn([
84
+        $this->crud->addColumn ([
85 85
             'name' => 'department.name',
86 86
             'label' => 'Department',
87 87
             'type' => 'text'
88 88
         ]);
89
-        $this->crud->addColumn([
89
+        $this->crud->addColumn ([
90 90
             'name' => 'submitted_applications_count',
91 91
             'label' => 'Total Applications',
92 92
             'type' => 'model_function',
@@ -94,19 +94,19 @@  discard block
 block discarded – undo
94 94
         ]);
95 95
 
96 96
         // Filters.
97
-        $this->crud->addFilter([
97
+        $this->crud->addFilter ([
98 98
             'name' => 'departments',
99 99
             'type' => 'select2_multiple',
100 100
             'label' => 'Departments'
101
-        ], function () {
102
-            return Department::all()->pluck('name', 'id')->toArray();
103
-        }, function ($values) {
104
-            $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) {
105
-                foreach (json_decode($values) as $key => $value) {
101
+        ], function (){
102
+            return Department::all ()->pluck ('name', 'id')->toArray ();
103
+        }, function ($values){
104
+            $this->crud->addClause ('WhereHas', 'department', function ($query) use ($values) {
105
+                foreach (json_decode ($values) as $key => $value) {
106 106
                     if ($key === 0) {
107
-                        $query->where('id', $value);
107
+                        $query->where ('id', $value);
108 108
                     } else {
109
-                        $query->orWhere('id', $value);
109
+                        $query->orWhere ('id', $value);
110 110
                     }
111 111
                 }
112 112
             });
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
     public function setupUpdateOperation()
117 117
     {
118
-        $this->crud->addField([
118
+        $this->crud->addField ([
119 119
             'name' => 'title',
120 120
             'label' => 'Title',
121 121
             'type' => 'text',
@@ -123,22 +123,22 @@  discard block
 block discarded – undo
123 123
                 'readonly' => 'readonly'
124 124
             ]
125 125
         ]);
126
-        $this->crud->addField([
126
+        $this->crud->addField ([
127 127
             'name' => 'salary_min',
128 128
             'type' => 'number',
129 129
             'label' => 'Minimum Salary',
130 130
         ]);
131
-        $this->crud->addField([
131
+        $this->crud->addField ([
132 132
             'name' => 'salary_max',
133 133
             'type' => 'number',
134 134
             'label' => 'Maximum Salary',
135 135
         ]);
136
-        $this->crud->addField([
136
+        $this->crud->addField ([
137 137
             'name' => 'noc',
138 138
             'type' => 'number',
139 139
             'label' => 'NOC Code',
140 140
         ]);
141
-        $this->crud->addField([
141
+        $this->crud->addField ([
142 142
             'name' => 'open_date_time',
143 143
             'label' => 'Open Date',
144 144
             'type' => 'date_picker',
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 'format' => 'yyyy-mm-dd',
148 148
             ],
149 149
         ]);
150
-        $this->crud->addField([
150
+        $this->crud->addField ([
151 151
             'name' => 'close_date_time',
152 152
             'label' => 'Close Date',
153 153
             'type' => 'date_picker',
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                 'format' => 'yyyy-mm-dd',
157 157
             ],
158 158
         ]);
159
-        $this->crud->addField([
159
+        $this->crud->addField ([
160 160
             'name' => 'start_date_time',
161 161
             'label' => 'Start Date',
162 162
             'type' => 'date_picker',
@@ -165,17 +165,17 @@  discard block
 block discarded – undo
165 165
                 'format' => 'yyyy-mm-dd',
166 166
             ],
167 167
         ]);
168
-        $this->crud->addField([
168
+        $this->crud->addField ([
169 169
             'name' => 'process_number',
170 170
             'type' => 'number',
171 171
             'label' => 'Process #',
172 172
         ]);
173
-        $this->crud->addField([
173
+        $this->crud->addField ([
174 174
             'name' => 'priority_clearance_number',
175 175
             'type' => 'number',
176 176
             'label' => 'Priority Clearance #',
177 177
         ]);
178
-        $this->crud->addField([
178
+        $this->crud->addField ([
179 179
             'name' => 'loo_issuance_date',
180 180
             'type' => 'date_picker',
181 181
             'label' => 'Letter of Offer Issuance Date',
@@ -184,10 +184,10 @@  discard block
 block discarded – undo
184 184
                'format' => 'yyyy-mm-dd',
185 185
             ],
186 186
         ]);
187
-        if ($this->crud->getCurrentEntry() &&
188
-            !$this->crud->getCurrentEntry()->published
187
+        if ($this->crud->getCurrentEntry () &&
188
+            !$this->crud->getCurrentEntry ()->published
189 189
         ) {
190
-            $this->crud->addField([
190
+            $this->crud->addField ([
191 191
                 'name' => 'published',
192 192
                 'label' => 'Publish',
193 193
                 'type' => 'checkbox'
@@ -197,20 +197,20 @@  discard block
 block discarded – undo
197 197
 
198 198
     public function update()
199 199
     {
200
-        $open_date = $this->crud->request->request->get('open_date_time');
201
-        $close_date = $this->crud->request->request->get('close_date_time');
202
-        $start_date = $this->crud->request->request->get('start_date_time');
203
-        $this->crud->request->request->remove('open_date_time');
204
-        $this->crud->request->request->remove('close_date_time');
205
-        $this->crud->request->request->remove('start_date_time');
200
+        $open_date = $this->crud->request->request->get ('open_date_time');
201
+        $close_date = $this->crud->request->request->get ('close_date_time');
202
+        $start_date = $this->crud->request->request->get ('start_date_time');
203
+        $this->crud->request->request->remove ('open_date_time');
204
+        $this->crud->request->request->remove ('close_date_time');
205
+        $this->crud->request->request->remove ('start_date_time');
206 206
         // Manipulates the input fields to save the "end of day" timestamp for
207 207
         // open/close/start dates.
208
-        $this->crud->request->request->add([
209
-            'open_date_time' => ptDayStartToUtcTime($open_date),
210
-            'close_date_time' => ptDayEndToUtcTime($close_date),
211
-            'start_date_time' => ptDayStartToUtcTime($start_date),
208
+        $this->crud->request->request->add ([
209
+            'open_date_time' => ptDayStartToUtcTime ($open_date),
210
+            'close_date_time' => ptDayEndToUtcTime ($close_date),
211
+            'start_date_time' => ptDayStartToUtcTime ($start_date),
212 212
         ]);
213
-        $response = $this->traitUpdate();
213
+        $response = $this->traitUpdate ();
214 214
 
215 215
         return $response;
216 216
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ClassificationCrudController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
     public function setup() : void
22 22
     {
23 23
         // Eloquent model to associate with this collection of views and controller actions.
24
-        $this->crud->setModel('App\Models\Classification');
24
+        $this->crud->setModel ('App\Models\Classification');
25 25
         // Custom backpack route.
26
-        $this->crud->setRoute('admin/classification');
26
+        $this->crud->setRoute ('admin/classification');
27 27
         // Custom strings to display within the backpack UI.
28
-        $this->crud->setEntityNameStrings('classification', 'classifications');
28
+        $this->crud->setEntityNameStrings ('classification', 'classifications');
29 29
 
30
-        $this->crud->operation(['create', 'update'], function () {
31
-            $this->crud->addField([
30
+        $this->crud->operation (['create', 'update'], function (){
31
+            $this->crud->addField ([
32 32
                 'name' => 'key',
33 33
                 'type' => 'text',
34 34
                 'label' => 'Key',
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function setupListOperation()
40 40
     {
41
-        $this->crud->addColumn([
41
+        $this->crud->addColumn ([
42 42
             'name' => 'id',
43 43
             'type' => 'text',
44 44
             'label' => 'ID',
45 45
         ]);
46 46
 
47
-        $this->crud->addColumn([
47
+        $this->crud->addColumn ([
48 48
             'name' => 'key',
49 49
             'type' => 'text',
50 50
             'label' => 'Key',
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function setupCreateOperation()
55 55
     {
56
-        $this->crud->setValidation(StoreRequest::class);
56
+        $this->crud->setValidation (StoreRequest::class);
57 57
     }
58 58
 
59 59
     public function setupUpdateOperation()
60 60
     {
61
-        $this->crud->setValidation(UpdateRequest::class);
61
+        $this->crud->setValidation (UpdateRequest::class);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.