@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | protected function mapApiRoutes(): void |
75 | 75 | { |
76 | 76 | Route::prefix('api') |
77 | - ->middleware('api') |
|
78 | - ->namespace($this->namespace) |
|
79 | - ->group(base_path('routes/api.php')); |
|
77 | + ->middleware('api') |
|
78 | + ->namespace($this->namespace) |
|
79 | + ->group(base_path('routes/api.php')); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | protected function mapWebRoutes(): void |
90 | 90 | { |
91 | 91 | Route::middleware('web') |
92 | - ->namespace($this->namespace) |
|
93 | - ->group(base_path('routes/web.php')); |
|
92 | + ->namespace($this->namespace) |
|
93 | + ->group(base_path('routes/web.php')); |
|
94 | 94 | } |
95 | 95 | } |
@@ -44,13 +44,13 @@ |
||
44 | 44 | $response = response($result); |
45 | 45 | $name = sprintf('import_config_%s.json', date('Y-m-d')); |
46 | 46 | $response->header('Content-disposition', 'attachment; filename=' . $name) |
47 | - ->header('Content-Type', 'application/json') |
|
48 | - ->header('Content-Description', 'File Transfer') |
|
49 | - ->header('Connection', 'Keep-Alive') |
|
50 | - ->header('Expires', '0') |
|
51 | - ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
52 | - ->header('Pragma', 'public') |
|
53 | - ->header('Content-Length', strlen($result)); |
|
47 | + ->header('Content-Type', 'application/json') |
|
48 | + ->header('Content-Description', 'File Transfer') |
|
49 | + ->header('Connection', 'Keep-Alive') |
|
50 | + ->header('Expires', '0') |
|
51 | + ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
52 | + ->header('Pragma', 'public') |
|
53 | + ->header('Content-Length', strlen($result)); |
|
54 | 54 | |
55 | 55 | return $response; |
56 | 56 | } |
@@ -91,10 +91,10 @@ |
||
91 | 91 | { |
92 | 92 | return Validator::make( |
93 | 93 | $data, [ |
94 | - 'name' => ['required', 'string', 'max:255'], |
|
95 | - 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], |
|
96 | - 'password' => ['required', 'string', 'min:8', 'confirmed'], |
|
97 | - ] |
|
94 | + 'name' => ['required', 'string', 'max:255'], |
|
95 | + 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], |
|
96 | + 'password' => ['required', 'string', 'min:8', 'confirmed'], |
|
97 | + ] |
|
98 | 98 | ); |
99 | 99 | } |
100 | 100 | } |
@@ -202,12 +202,12 @@ |
||
202 | 202 | $client = $this->getClient(); |
203 | 203 | $res = $client->request( |
204 | 204 | 'GET', $fullUri, [ |
205 | - 'headers' => [ |
|
206 | - 'Accept' => 'application/json', |
|
207 | - 'Authorization' => sprintf('Bearer %s', $this->getToken()), |
|
208 | - ], |
|
209 | - 'verify' => resource_path('certs/ca.cert.pem'), |
|
210 | - ] |
|
205 | + 'headers' => [ |
|
206 | + 'Accept' => 'application/json', |
|
207 | + 'Authorization' => sprintf('Bearer %s', $this->getToken()), |
|
208 | + ], |
|
209 | + 'verify' => resource_path('certs/ca.cert.pem'), |
|
210 | + ] |
|
211 | 211 | ); |
212 | 212 | |
213 | 213 | if (200 !== $res->getStatusCode()) { |