Completed
Push — master ( 09a64e...d2b124 )
by Sherif
02:30
created
src/Modules/Core/Providers/ModuleServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
         $this->loadMigrationsFrom(module_path('core', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('core', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('core', 'Config', 'app'));
23 23
         }
24 24
     }
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
     public function register()
32 32
     {
33 33
         //Bind Core Facade to the Service Container
34
-        $this->app->singleton('Core', function () {
34
+        $this->app->singleton('Core', function() {
35 35
             return new \App\Modules\Core\Core;
36 36
         });
37 37
 
38 38
         //Bind Errors Facade to the Service Container
39
-        $this->app->singleton('Errors', function () {
39
+        $this->app->singleton('Errors', function() {
40 40
             return new \App\Modules\Core\Errors\Errors;
41 41
         });
42 42
 
43 43
         //Bind Media Facade to the Service Container
44
-        $this->app->singleton('Media', function () {
44
+        $this->app->singleton('Media', function() {
45 45
             return new \App\Modules\Core\Utl\Media;
46 46
         });
47 47
 
48 48
         //Bind ApiConsumer Facade to the Service Container
49
-        $this->app->singleton('ApiConsumer', function () {
49
+        $this->app->singleton('ApiConsumer', function() {
50 50
             $app = app();
51 51
             return new \App\Modules\Core\Utl\ApiConsumer($app, $app['request'], $app['router']);
52 52
         });
Please login to merge, or discard this patch.
Core/Console/Commands/Stubs/Module/Providers/ModuleServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $this->loadMigrationsFrom(module_path('DummyModuleSlug', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('DummyModuleSlug', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('DummyModuleSlug', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/Permissions/Providers/ModuleServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $this->loadMigrationsFrom(module_path('permissions', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('permissions', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('permissions', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/Users/Providers/ModuleServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $this->loadMigrationsFrom(module_path('users', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('users', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('users', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
files/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                 return \Response::json(['errors' => [$errors]], $exception-> getStatusCode());
66 66
             } elseif ($exception instanceof \Illuminate\Validation\ValidationException) {
67 67
                 return \Response::json(['errors' => $exception-> errors()], 422);
68
-            } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
68
+            } elseif ( ! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
69 69
                 return parent::render($request, $exception);
70 70
             }
71 71
         }
Please login to merge, or discard this patch.
src/Modules/Users/Routes/api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
25 25
     Route::patch('unblock/{id}', 'UserController@unblock');
26 26
     Route::patch('assign/roles/{id}', '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');
Please login to merge, or discard this patch.
src/Modules/Core/Http/Middleware/CheckPermissions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         $permission          = $routeActions[1];
57 57
 
58 58
         $this->auth->shouldUse('api');
59
-        if (! in_array($permission, $skipLoginCheck)) {
60
-            $this->authMiddleware->handle($request, function ($request) use ($modelName, $skipPermissionCheck, $permission) {
59
+        if ( ! in_array($permission, $skipLoginCheck)) {
60
+            $this->authMiddleware->handle($request, function($request) use ($modelName, $skipPermissionCheck, $permission) {
61 61
                 $user             = $this->auth->user();
62 62
                 $isPasswordClient = $user->token()->client->password_client;
63 63
     
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 }
67 67
     
68 68
                 if ($isPasswordClient && (in_array($permission, $skipPermissionCheck) || $this->userService->can($permission, $modelName))) {
69
-                } elseif (! $isPasswordClient && $user->tokenCan($modelName.'-'.$permission)) {
69
+                } elseif ( ! $isPasswordClient && $user->tokenCan($modelName.'-'.$permission)) {
70 70
                 } else {
71 71
                     \Errors::noPermissions();
72 72
                 }
Please login to merge, or discard this patch.
src/Modules/Core/Decorators/CachingDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         if ($this->cacheConfig && $this->cacheConfig == 'cache') {
77 77
             $page     = \Request::get('page') !== null ? \Request::get('page') : '1';
78 78
             $cacheKey = $name.$page.\Session::get('locale').serialize($arguments);
79
-            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function () use ($arguments, $name) {
79
+            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) {
80 80
                 return call_user_func_array([$this->service, $name], $arguments);
81 81
             });
82 82
         } elseif ($this->cacheConfig) {
Please login to merge, or discard this patch.
src/Modules/Core/Utl/Media.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
      */
27 27
     public function uploadImageBas64($image, $dir)
28 28
     {
29
-        if (! strlen($image)) {
29
+        if ( ! strlen($image)) {
30 30
             return null;
31 31
         }
32 32
 
33
-        if(filter_var($image, FILTER_VALIDATE_URL)) {
33
+        if (filter_var($image, FILTER_VALIDATE_URL)) {
34 34
             return $image;
35 35
         }
36 36
         
Please login to merge, or discard this patch.