Completed
Push — master ( b1a815...f99d3b )
by Sherif
02:01
created
src/Modules/OauthClients/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('oauth-clients', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('oauth-clients', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('oauth-clients', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/PushNotificationDevices/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('push-notification-devices', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('push-notification-devices', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('push-notification-devices', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/Roles/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('roles', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('roles', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('roles', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/Reporting/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('reporting', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('reporting', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('reporting', 'Config', 'app'));
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/Modules/Notifications/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('notifications', 'Database/Migrations', 'app'));
20 20
         $this->loadFactoriesFrom(module_path('notifications', 'Database/Factories', 'app'));
21
-        if (!$this->app->configurationIsCached()) {
21
+        if ( ! $this->app->configurationIsCached()) {
22 22
             $this->loadConfigsFrom(module_path('notifications', 'Config', 'app'));
23 23
         }
24 24
     }
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
@@ -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.
src/Modules/Core/Console/Commands/PassportInstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function handle(ClientRepository $client)
32 32
     {
33 33
         $this->call('passport:keys', ['--force' => $this->option('force'), '--length' => $this->option('length')]);
34
-        if (! \Core::oauthCLients()->first(['password_client' => 1])) {
34
+        if ( ! \Core::oauthCLients()->first(['password_client' => 1])) {
35 35
             $client = $client->createPasswordGrantClient(
36 36
                 null,
37 37
                 config('app.name'),
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/Core/Console/Commands/GenerateDocCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function getRoutes()
92 92
     {
93
-        return collect(\Route::getRoutes())->map(function ($route) {
93
+        return collect(\Route::getRoutes())->map(function($route) {
94 94
             if (strpos($route->uri(), 'api/') !== false) {
95 95
                 return [
96 96
                     'method' => $route->methods()[0],
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         ];
122 122
 
123 123
 
124
-        if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) {
124
+        if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) {
125 125
             $route['headers']['Authorization'] = 'Bearer {token}';
126 126
         }
127 127
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         if (count($parameters)) {
170 170
             $className = optional($reflectionMethod->getParameters()[0]->getType())->getName();
171 171
             if ($className) {
172
-                $reflectionClass  = new \ReflectionClass($className);
172
+                $reflectionClass = new \ReflectionClass($className);
173 173
     
174 174
                 if ($reflectionClass->hasMethod('rules')) {
175 175
                     $reflectionMethod = $reflectionClass->getMethod('rules');
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
     {
197 197
         $errors = [];
198 198
         foreach (\Module::all() as $module) {
199
-            $nameSpace = 'App\\Modules\\' . $module['basename'] ;
200
-            $class = $nameSpace . '\\Errors\\'  . $module['basename'] . 'Errors';
199
+            $nameSpace = 'App\\Modules\\'.$module['basename'];
200
+            $class = $nameSpace.'\\Errors\\'.$module['basename'].'Errors';
201 201
             $reflectionClass = new \ReflectionClass($class);
202 202
             foreach ($reflectionClass->getMethods() as $method) {
203 203
                 $methodName       = $method->name;
Please login to merge, or discard this patch.