@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | protected function mapWebRoutes() |
56 | 56 | { |
57 | 57 | Route::middleware('web') |
58 | - ->namespace($this->namespace) |
|
59 | - ->group(base_path('routes/web.php')); |
|
58 | + ->namespace($this->namespace) |
|
59 | + ->group(base_path('routes/web.php')); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | protected function mapApiRoutes() |
70 | 70 | { |
71 | 71 | Route::prefix('api') |
72 | - ->middleware('api') |
|
73 | - ->namespace($this->namespace) |
|
74 | - ->group(base_path('routes/api.php')); |
|
72 | + ->middleware('api') |
|
73 | + ->namespace($this->namespace) |
|
74 | + ->group(base_path('routes/api.php')); |
|
75 | 75 | } |
76 | 76 | } |
@@ -6,11 +6,11 @@ |
||
6 | 6 | class Authenticate extends Middleware |
7 | 7 | { |
8 | 8 | /** |
9 | - * Get the path the user should be redirected to when they are not authenticated. |
|
10 | - * |
|
11 | - * @param \Illuminate\Http\Request $request |
|
12 | - * @return string |
|
13 | - */ |
|
9 | + * Get the path the user should be redirected to when they are not authenticated. |
|
10 | + * |
|
11 | + * @param \Illuminate\Http\Request $request |
|
12 | + * @return string |
|
13 | + */ |
|
14 | 14 | protected function redirectTo($request) |
15 | 15 | { |
16 | 16 | if (WhichPortal::isManagerPortal()) { |
@@ -50,6 +50,6 @@ |
||
50 | 50 | ) |
51 | 51 | ); |
52 | 52 | } |
53 | - return $response; |
|
53 | + return $response; |
|
54 | 54 | } |
55 | 55 | } |
@@ -28,11 +28,11 @@ |
||
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 |
@@ -28,11 +28,11 @@ |
||
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(); |
@@ -26,11 +26,11 @@ |
||
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(); |