@@ -11,7 +11,7 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::group(['prefix' => 'notifications'], function () { |
|
| 14 | +Route::group(['prefix' => 'notifications'], function() { |
|
| 15 | 15 | |
| 16 | 16 | Route::get('/', 'NotificationController@index'); |
| 17 | 17 | Route::get('unread', 'NotificationController@unread'); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function toArray($request) |
| 16 | 16 | { |
| 17 | - if (! $this->resource) { |
|
| 17 | + if ( ! $this->resource) { |
|
| 18 | 18 | return []; |
| 19 | 19 | } |
| 20 | 20 | |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | public function __call($name, $arguments) |
| 18 | 18 | { |
| 19 | 19 | foreach (\Module::all() as $module) { |
| 20 | - $nameSpace = 'App\\Modules\\' . $module['basename'] ; |
|
| 20 | + $nameSpace = 'App\\Modules\\'.$module['basename']; |
|
| 21 | 21 | $model = ucfirst(\Str::singular($name)); |
| 22 | - $class = $nameSpace . '\\Repositories\\' . $model . 'Repository'; |
|
| 22 | + $class = $nameSpace.'\\Repositories\\'.$model.'Repository'; |
|
| 23 | 23 | |
| 24 | 24 | if (class_exists($class)) { |
| 25 | 25 | return \App::make($class); |
@@ -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@find'); |
@@ -28,27 +28,27 @@ |
||
| 28 | 28 | public function register() |
| 29 | 29 | { |
| 30 | 30 | //Bind Core Facade to the Service Container |
| 31 | - $this->app->singleton('Core', function () { |
|
| 31 | + $this->app->singleton('Core', function() { |
|
| 32 | 32 | return new \App\Modules\Core\Core; |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | 35 | //Bind ErrorHandler Facade to the Service Container |
| 36 | - $this->app->singleton('ErrorHandler', function () { |
|
| 36 | + $this->app->singleton('ErrorHandler', function() { |
|
| 37 | 37 | return new \App\Modules\Core\Utl\ErrorHandler; |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | 40 | //Bind CoreConfig Facade to the Service Container |
| 41 | - $this->app->singleton('CoreConfig', function () { |
|
| 41 | + $this->app->singleton('CoreConfig', function() { |
|
| 42 | 42 | return new \App\Modules\Core\Utl\CoreConfig; |
| 43 | 43 | }); |
| 44 | 44 | |
| 45 | 45 | //Bind Media Facade to the Service Container |
| 46 | - $this->app->singleton('Media', function () { |
|
| 46 | + $this->app->singleton('Media', function() { |
|
| 47 | 47 | return new \App\Modules\Core\Utl\Media; |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | //Bind ApiConsumer Facade to the Service Container |
| 51 | - $this->app->singleton('ApiConsumer', function () { |
|
| 51 | + $this->app->singleton('ApiConsumer', function() { |
|
| 52 | 52 | $app = app(); |
| 53 | 53 | return new \App\Modules\Core\Utl\ApiConsumer($app, $app['request'], $app['router']); |
| 54 | 54 | }); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | \Auth::shouldUse('api'); |
| 123 | 123 | $this->middleware('auth:api', ['except' => $this->skipLoginCheck]); |
| 124 | 124 | |
| 125 | - if (! in_array($permission, $this->skipLoginCheck) && $user = \Auth::user()) { |
|
| 125 | + if ( ! in_array($permission, $this->skipLoginCheck) && $user = \Auth::user()) { |
|
| 126 | 126 | $user = \Auth::user(); |
| 127 | 127 | $isPasswordClient = $user->token()->client->password_client; |
| 128 | 128 | $this->updateLocaleAndTimezone($user); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | if ($isPasswordClient && (in_array($permission, $this->skipPermissionCheck) || \Core::users()->can($permission, $this->modelName))) { |
| 135 | - } elseif (! $isPasswordClient && $user->tokenCan($this->modelName.'-'.$permission)) { |
|
| 135 | + } elseif ( ! $isPasswordClient && $user->tokenCan($this->modelName.'-'.$permission)) { |
|
| 136 | 136 | } else { |
| 137 | 137 | \ErrorHandler::noPermissions(); |
| 138 | 138 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | if ($timezone && $timezone !== $user->timezone) { |
| 205 | 205 | $user->timezone = $timezone; |
| 206 | - $update = true; |
|
| 206 | + $update = true; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | if ($update) { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function toArray($request) |
| 23 | 23 | { |
| 24 | - if (! $this->resource) { |
|
| 24 | + if ( ! $this->resource) { |
|
| 25 | 25 | return []; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -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@find'); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function toArray($request) |
| 16 | 16 | { |
| 17 | - if (! $this->resource) { |
|
| 17 | + if ( ! $this->resource) { |
|
| 18 | 18 | return []; |
| 19 | 19 | } |
| 20 | 20 | |