Completed
Push — master ( ec2395...0dfd17 )
by Sherif
02:09
created
src/Modules/Core/Routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Modules/Core/Providers/ModuleServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,27 +28,27 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/Modules/Core/BaseClasses/BaseApiController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Modules/Core/Http/Resources/Setting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Modules/Reporting/Routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Modules/Reporting/Http/Resources/Report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Modules/Groups/Repositories/GroupRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function assignPermissions($groupId, $permissionIds)
25 25
     {
26
-        \DB::transaction(function () use ($groupId, $permissionIds) {
26
+        \DB::transaction(function() use ($groupId, $permissionIds) {
27 27
             $group = $this->find($groupId);
28 28
             $group->permissions()->detach();
29 29
             $group->permissions()->attach($permissionIds);
Please login to merge, or discard this patch.
src/Modules/Groups/Routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Route::group(['prefix' => 'groups'], function () {
16
+Route::group(['prefix' => 'groups'], function() {
17 17
 
18 18
     Route::get('/', 'GroupController@index');
19 19
     Route::get('/{id}', 'GroupController@find');
Please login to merge, or discard this patch.
src/Modules/Groups/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         Route::group([
55 55
             'middleware' => 'web',
56 56
             'namespace'  => $this->namespace,
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require module_path('groups', 'Routes/web.php', 'app');
59 59
         });
60 60
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'middleware' => 'api',
73 73
             'namespace'  => $this->namespace,
74 74
             'prefix'     => 'api',
75
-        ], function ($router) {
75
+        ], function($router) {
76 76
             require module_path('groups', 'Routes/api.php', 'app');
77 77
         });
78 78
     }
Please login to merge, or discard this patch.