Passed
Pull Request — master (#242)
by
unknown
02:51
created
src/Middleware/MiddlewareManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $currentMiddleware = $this->getMiddleware($request, $response);
68 68
 
69
-        list($request, $response) = $currentMiddleware->apply($request, $response, function ($request, $response) {
69
+        list($request, $response) = $currentMiddleware->apply($request, $response, function($request, $response) {
70 70
             next($this->middlewares);
71 71
             return [$request, $response];
72 72
         });
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 
90 90
         return $loader->loadClassFromFile(
91 91
             $middlewarePath,
92
-            function () { return MiddlewareException::middlewareNotFound(current($this->middlewares)); },
93
-            function () { return MiddlewareException::notDefined(current($this->middlewares)); },
92
+            function() { return MiddlewareException::middlewareNotFound(current($this->middlewares)); },
93
+            function() { return MiddlewareException::notDefined(current($this->middlewares)); },
94 94
             [$request, $response]
95 95
         );
96 96
     }
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Criteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         ];
112 112
 
113 113
         if (is_array($value)) {
114
-            return array_map(function ($v) use ($escapeMap) {
114
+            return array_map(function($v) use ($escapeMap) {
115 115
                 return is_string($v) ? strtr($v, $escapeMap) : $v;
116 116
             }, $value);
117 117
         }
Please login to merge, or discard this patch.
src/Libraries/Auth/Factories/AuthFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,6 @@
 block discarded – undo
136 136
      */
137 137
     private static function createJwtInstance(string $adapter): ?JwtToken
138 138
     {
139
-        return $adapter === Auth::JWT ? (new JwtToken())->setLeeway(1)->setClaims((array)config()->get('auth.claims')) : null;
139
+        return $adapter === Auth::JWT ? (new JwtToken())->setLeeway(1)->setClaims((array) config()->get('auth.claims')) : null;
140 140
     }
141 141
 }
142 142
\ No newline at end of file
Please login to merge, or discard this patch.
src/Libraries/Auth/Adapters/JwtAuthAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 
136 136
         $user = $this->authService->get($this->keyFields[AuthKeys::REFRESH_TOKEN], $refreshToken);
137 137
 
138
-        if($user) {
138
+        if ($user) {
139 139
             $this->setUpdatedTokens($user);
140 140
             return true;
141 141
         }
Please login to merge, or discard this patch.
src/Libraries/Module/ModuleManager.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param string $srcPath
221 221
      * @param string $dstPath
222 222
      */
223
-    private function processTemplates(string $srcPath, string &$dstPath){
223
+    private function processTemplates(string $srcPath, string &$dstPath) {
224 224
         $dstPath = str_replace('.tpl', '.php', $dstPath);
225 225
         $content = $this->fs->get($srcPath);
226 226
         $processedContent = $this->replacePlaceholders($content);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     private function replacePlaceholders(string $content): string
235 235
     {
236 236
         $placeholders = [
237
-            '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() .'\\' . $this->getModuleName(),
237
+            '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() . '\\' . $this->getModuleName(),
238 238
             '{{MODULE_NAME}}' => $this->getModuleName(),
239 239
         ];
240 240
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
207 207
             } else {
208 208
                 if ($processTemplates) {
209 209
                     $this->processTemplates($srcPath, $dstPath);
210
-                }
211
-                else {
210
+                } else {
212 211
                     $this->fs->copy($srcPath, $dstPath);
213 212
                 }
214 213
                 $copiedFiles[] = $dstPath;
Please login to merge, or discard this patch.