Failed Conditions
Branch master (e37483)
by Maximo
06:09
created
src/Core/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use function Canvas\Core\envValue;
5 5
 
6 6
 return [
7
-    'application' => [ //@todo migration to app
7
+    'application' => [//@todo migration to app
8 8
         'production' => getenv('PRODUCTION'),
9 9
         'development' => getenv('DEVELOPMENT'),
10 10
         'jwtSecurity' => getenv('JWT_SECURITY'),
Please login to merge, or discard this patch.
src/Api/Controllers/AppsSettingsController.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 block discarded – undo
50 50
     {
51 51
         //DTOAppsSettings
52 52
         $this->dtoConfig->registerMapping(Apps::class, AppsSettings::class)
53
-          ->forMember('settings', function (Apps $app) {
54
-              $settings = [];
55
-              foreach ($app->settingsApp->toArray() as $setting) {
56
-                  $settings[$setting['name']] = $setting['value'];
57
-              }
58
-              return $settings;
59
-          });
53
+            ->forMember('settings', function (Apps $app) {
54
+                $settings = [];
55
+                foreach ($app->settingsApp->toArray() as $setting) {
56
+                    $settings[$setting['name']] = $setting['value'];
57
+                }
58
+                return $settings;
59
+            });
60 60
 
61 61
         return is_iterable($results) ?
62 62
                 $this->mapper->mapMultiple(iterator_to_array($results), AppsSettings::class)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         //DTOAppsSettings
52 52
         $this->dtoConfig->registerMapping(Apps::class, AppsSettings::class)
53
-          ->forMember('settings', function (Apps $app) {
53
+          ->forMember('settings', function(Apps $app) {
54 54
               $settings = [];
55 55
               foreach ($app->settingsApp->toArray() as $setting) {
56 56
                   $settings[$setting['name']] = $setting['value'];
Please login to merge, or discard this patch.
src/Middleware/AuthenticationMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
             $api->getDI()->setShared(
47 47
                 'userData',
48
-                function () use ($config, $token, $request) {
48
+                function() use ($config, $token, $request) {
49 49
                     $session = new Sessions();
50 50
 
51 51
                     //all is empty and is dev, ok take use the first user
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                         }
61 61
 
62 62
                         $ip = !defined('API_TESTS') ? $request->getClientAddress() : '127.0.0.1';
63
-                        return $session->check($user, $token->getClaim('sessionId'), (string) $ip, 1);
63
+                        return $session->check($user, $token->getClaim('sessionId'), (string)$ip, 1);
64 64
                     } else {
65 65
                         throw new UnauthorizedHttpException('User not found');
66 66
                     }
Please login to merge, or discard this patch.
src/Bootstrap/Api.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
         //set all the services
86 86
 
87 87
         /**
88
-        * @todo Find a better way to handle unit test file include
89
-        */
88
+         * @todo Find a better way to handle unit test file include
89
+         */
90 90
         $this->providers =  require appPath('api/config/providers.php');
91 91
 
92 92
         //run my parents setup
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         /**
88 88
         * @todo Find a better way to handle unit test file include
89 89
         */
90
-        $this->providers =  require appPath('api/config/providers.php');
90
+        $this->providers = require appPath('api/config/providers.php');
91 91
 
92 92
         //run my parents setup
93 93
         parent::setup();
Please login to merge, or discard this patch.