@@ -11,7 +11,7 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'oauth/clients'], function () { |
|
14 | +Route::group(['prefix' => 'oauth/clients'], function() { |
|
15 | 15 | |
16 | 16 | Route::get('/', 'OauthClientController@index'); |
17 | 17 | Route::get('{id}', 'OauthClientController@show'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'permissions'], function () { |
|
16 | +Route::group(['prefix' => 'permissions'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'PermissionController@index'); |
19 | 19 | Route::get('/{id}', 'PermissionController@show'); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'reports'], function () { |
|
14 | +Route::group(['prefix' => 'reports'], function() { |
|
15 | 15 | |
16 | 16 | Route::get('/', 'ReportController@index'); |
17 | 17 | Route::get('/{id}', 'ReportController@show'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'push/notification/devices'], function () { |
|
16 | +Route::group(['prefix' => 'push/notification/devices'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'PushNotificationDeviceController@index'); |
19 | 19 | Route::get('{id}', 'PushNotificationDeviceController@show'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'DummyRoutePrefix'], function () { |
|
16 | +Route::group(['prefix' => 'DummyRoutePrefix'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'DummyController@index'); |
19 | 19 | Route::get('{id}', 'DummyController@show'); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $prefix = $route['prefix']; |
57 | 57 | $module = \Str::camel(str_replace('/', '_', str_replace('api', '', $prefix))); |
58 | - if($prefix === 'telescope') { |
|
58 | + if ($prefix === 'telescope') { |
|
59 | 59 | continue; |
60 | 60 | } |
61 | 61 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function getRoutes() |
96 | 96 | { |
97 | - return collect(\Route::getRoutes())->map(function ($route) { |
|
97 | + return collect(\Route::getRoutes())->map(function($route) { |
|
98 | 98 | if (strpos($route->uri(), 'api/') !== false) { |
99 | 99 | return [ |
100 | 100 | 'method' => $route->methods()[0], |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | ]; |
126 | 126 | |
127 | 127 | |
128 | - if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
128 | + if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) { |
|
129 | 129 | $route['headers']['Authorization'] = 'Bearer {token}'; |
130 | 130 | } |
131 | 131 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | if (count($parameters)) { |
175 | 175 | $className = optional($reflectionMethod->getParameters()[0]->getType())->getName(); |
176 | 176 | if ($className) { |
177 | - $reflectionClass = new \ReflectionClass($className); |
|
177 | + $reflectionClass = new \ReflectionClass($className); |
|
178 | 178 | |
179 | 179 | if ($reflectionClass->hasMethod('rules')) { |
180 | 180 | $reflectionMethod = $reflectionClass->getMethod('rules'); |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | { |
202 | 202 | $errors = []; |
203 | 203 | foreach (\Module::all() as $module) { |
204 | - $nameSpace = 'App\\Modules\\' . $module['basename'] ; |
|
205 | - $class = $nameSpace . '\\Errors\\' . $module['basename'] . 'Errors'; |
|
204 | + $nameSpace = 'App\\Modules\\'.$module['basename']; |
|
205 | + $class = $nameSpace.'\\Errors\\'.$module['basename'].'Errors'; |
|
206 | 206 | $reflectionClass = new \ReflectionClass($class); |
207 | 207 | foreach ($reflectionClass->getMethods() as $method) { |
208 | 208 | $methodName = $method->name; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'settings'], function () { |
|
14 | +Route::group(['prefix' => 'settings'], function() { |
|
15 | 15 | |
16 | 16 | Route::get('/', 'SettingController@index'); |
17 | 17 | Route::get('{id}', 'SettingController@show'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'roles'], function () { |
|
16 | +Route::group(['prefix' => 'roles'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'RoleController@index'); |
19 | 19 | Route::get('{id}', 'RoleController@show'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'users'], function () { |
|
16 | +Route::group(['prefix' => 'users'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'UserController@index'); |
19 | 19 | Route::get('{id}', 'UserController@show'); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | Route::patch('{id}/unblock', 'UserController@unblock'); |
26 | 26 | Route::patch('{id}/assign/roles', 'UserController@assignRoles'); |
27 | 27 | |
28 | - Route::group(['prefix' => 'account'], function () { |
|
28 | + Route::group(['prefix' => 'account'], function() { |
|
29 | 29 | |
30 | 30 | Route::get('my', 'UserController@account'); |
31 | 31 | Route::get('logout', 'UserController@logout'); |