@@ -177,8 +177,8 @@ |
||
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() && |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | 'name' => 'title', |
55 | 55 | 'type' => 'text', |
56 | 56 | 'label' => 'Title', |
57 | - 'searchLogic' => function ($query, $column, $searchTerm) use ($locale) : void { |
|
58 | - $query->orWhere('title->' . $locale, 'ilike', "%$searchTerm%"); |
|
57 | + 'searchLogic' => function($query, $column, $searchTerm) use ($locale) : void { |
|
58 | + $query->orWhere('title->'.$locale, 'ilike', "%$searchTerm%"); |
|
59 | 59 | }, |
60 | - 'orderLogic' => function ($query, $column, $columnDirection) use ($locale) { |
|
61 | - return $query->orderBy('title->' . $locale, $columnDirection)->select('*'); |
|
60 | + 'orderLogic' => function($query, $column, $columnDirection) use ($locale) { |
|
61 | + return $query->orderBy('title->'.$locale, $columnDirection)->select('*'); |
|
62 | 62 | } |
63 | 63 | ]); |
64 | 64 | $this->crud->addColumn([ |
@@ -77,8 +77,8 @@ discard block |
||
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 | 84 | $this->crud->addColumn([ |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | 'name' => 'departments', |
99 | 99 | 'type' => 'select2_multiple', |
100 | 100 | 'label' => 'Departments' |
101 | - ], function () { |
|
101 | + ], function() { |
|
102 | 102 | return Department::all()->pluck('name', 'id')->toArray(); |
103 | - }, function ($values) { |
|
104 | - $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) { |
|
103 | + }, function($values) { |
|
104 | + $this->crud->addClause('WhereHas', 'department', function($query) use ($values) { |
|
105 | 105 | foreach (json_decode($values) as $key => $value) { |
106 | 106 | if ($key === 0) { |
107 | 107 | $query->where('id', $value); |
@@ -107,7 +107,7 @@ |
||
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; |
@@ -25,11 +25,11 @@ |
||
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(); |
@@ -27,11 +27,11 @@ |
||
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(); |
@@ -25,13 +25,13 @@ |
||
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 | } |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -28,8 +28,8 @@ |
||
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 | { |
@@ -173,10 +173,10 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -234,6 +234,6 @@ |
||
234 | 234 | */ |
235 | 235 | public function getFullNameAttribute(): string |
236 | 236 | { |
237 | - return $this->first_name . ' ' . $this->last_name; |
|
237 | + return $this->first_name.' '.$this->last_name; |
|
238 | 238 | } |
239 | 239 | } |
@@ -9,7 +9,7 @@ |
||
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 | /** |