Completed
Push — develop ( b20712...288a8b )
by Neomerx
13:21 queued 11:13
created
src/Packages/Csrf/CsrfContainerConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     public static function configureContainer(LimoncelloContainerInterface $container): void
42 42
     {
43 43
         $storage = null;
44
-        $factory = function (PsrContainerInterface $container) use (&$storage) {
44
+        $factory = function(PsrContainerInterface $container) use (&$storage) {
45 45
             if ($storage === null) {
46 46
                 $storage = static::createStorage($container);
47 47
             }
Please login to merge, or discard this patch.
src/Packages/Csrf/CsrfSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         $expectedRet         = ResponseInterface::class;
96 96
         assert(
97 97
             $this->checkPublicStaticCallable($errorResponseMethod, $expectedArgs, $expectedRet) === true,
98
-            'CSRF error response method should have signature ' .
98
+            'CSRF error response method should have signature '.
99 99
             '(ContainerInterface, ServerRequestInterface): ResponseInterface.'
100 100
         );
101 101
 
Please login to merge, or discard this patch.
src/Packages/Cors/CorsSettings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         $appConfig = $this->getAppConfig();
106 106
 
107
-        $defaults[static::KEY_LOG_IS_ENABLED] = (bool)($appConfig[A::KEY_IS_LOG_ENABLED] ?? false);
107
+        $defaults[static::KEY_LOG_IS_ENABLED] = (bool) ($appConfig[A::KEY_IS_LOG_ENABLED] ?? false);
108 108
 
109 109
         if (array_key_exists(A::KEY_APP_ORIGIN_SCHEMA, $appConfig) === true &&
110 110
             array_key_exists(A::KEY_APP_ORIGIN_HOST, $appConfig) === true &&
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
              * @see http://php.net/manual/function.parse-url.php
117 117
              */
118 118
             $defaults[static::KEY_SERVER_ORIGIN] = [
119
-                static::KEY_SERVER_ORIGIN_HOST => (string)$appConfig[A::KEY_APP_ORIGIN_HOST],
120
-                static::KEY_SERVER_ORIGIN_PORT => (string)$appConfig[A::KEY_APP_ORIGIN_PORT],
119
+                static::KEY_SERVER_ORIGIN_HOST => (string) $appConfig[A::KEY_APP_ORIGIN_HOST],
120
+                static::KEY_SERVER_ORIGIN_PORT => (string) $appConfig[A::KEY_APP_ORIGIN_PORT],
121 121
             ];
122 122
         }
123 123
 
Please login to merge, or discard this patch.
src/Session/SessionFunctions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -176,22 +176,22 @@
 block discarded – undo
176 176
     public function __construct()
177 177
     {
178 178
         $this
179
-            ->setRetrieveCallable(function (string $key) {
179
+            ->setRetrieveCallable(function(string $key) {
180 180
                 return $_SESSION[$key];
181 181
             })
182
-            ->setPutCallable(function (string $key, $serializable): void {
182
+            ->setPutCallable(function(string $key, $serializable): void {
183 183
                 $_SESSION[$key] = $serializable;
184 184
             })
185
-            ->setHasCallable(function (string $key): bool {
185
+            ->setHasCallable(function(string $key): bool {
186 186
                 return array_key_exists($key, $_SESSION);
187 187
             })
188
-            ->setDeleteCallable(function (string $key): void {
188
+            ->setDeleteCallable(function(string $key): void {
189 189
                 unset($_SESSION[$key]);
190 190
             })
191
-            ->setIteratorCallable(function (): Iterator {
191
+            ->setIteratorCallable(function(): Iterator {
192 192
                 return new ArrayIterator($_SESSION);
193 193
             })
194
-            ->setCouldBeStartedCallable(function (): bool {
194
+            ->setCouldBeStartedCallable(function(): bool {
195 195
                 return session_status() === PHP_SESSION_NONE;
196 196
             })
197 197
             ->setAbortCallable('\session_abort')
Please login to merge, or discard this patch.
src/Authorization/RequestProperties.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /** Request key */
25 25
     const REQ_FIRST = 0;
26 26
 
27
-   /** Request key */
27
+    /** Request key */
28 28
     const REQ_ACTION = self::REQ_FIRST;
29 29
 
30 30
     /** Request key */
Please login to merge, or discard this patch.
src/Authorization/AuthorizationRulesLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             if ($reflectionMethod->isPublic() === true &&
114 114
                 $reflectionMethod->isStatic() === true &&
115 115
                 $reflectionMethod->hasReturnType() === true &&
116
-                (string)$reflectionMethod->getReturnType() === 'bool' &&
116
+                (string) $reflectionMethod->getReturnType() === 'bool' &&
117 117
                 $reflectionMethod->getNumberOfParameters() === 1 &&
118 118
                 $reflectionMethod->getParameters()[0]->getClass()->implementsInterface(ContextInterface::class) === true
119 119
             ) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         }
163 163
 
164 164
         $policy = (new Policy($rules, RuleAlgorithm::firstApplicable()))
165
-            ->setName($policiesName . ' -> ResourceType' . "=`$resourcesType`")
165
+            ->setName($policiesName.' -> ResourceType'."=`$resourcesType`")
166 166
             ->setTarget($this->target(RequestProperties::REQ_RESOURCE_TYPE, $resourcesType));
167 167
 
168 168
         return $policy;
Please login to merge, or discard this patch.