Completed
Push — master ( 23da77...988f4c )
by Arman
18s queued 16s
created
src/Model/QtModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      */
93 93
     public function get(): ModelCollection
94 94
     {
95
-        $models = array_map(function ($item) {
95
+        $models = array_map(function($item) {
96 96
             return wrapToModel($item, static::class);
97 97
         }, $this->ormInstance->get());
98 98
 
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
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     {
135 135
         $user = $this->authService->get('uuid', $uuid);
136 136
 
137
-        if($user) {
137
+        if ($user) {
138 138
             $this->setUpdatedTokens($user);
139 139
             return true;
140 140
         }
Please login to merge, or discard this patch.
src/Module/ModuleManager.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * @param string $srcPath
222 222
      * @param string $dstPath
223 223
      */
224
-    private function processTemplates(string $srcPath, string &$dstPath){
224
+    private function processTemplates(string $srcPath, string &$dstPath) {
225 225
         $dstPath = str_replace('.php.tpl', '.php', $dstPath);
226 226
         $content = $this->fs->get($srcPath);
227 227
         $processedContent = $this->replacePlaceholders($content);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     private function replacePlaceholders(string $content): string
236 236
     {
237 237
         $placeholders = [
238
-            '{{MODULE_NAMESPACE}}' => module_base_namespace() .'\\' . $this->getModuleName(),
238
+            '{{MODULE_NAMESPACE}}' => module_base_namespace() . '\\' . $this->getModuleName(),
239 239
             '{{MODULE_NAME}}' => $this->getModuleName(),
240 240
         ];
241 241
 
Please login to merge, or discard this patch.
src/Module/ModuleLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
             throw ModuleException::moduleRoutesNotFound($module);
153 153
         }
154 154
 
155
-        if(empty(self::$moduleRoutes[$module])) {
155
+        if (empty(self::$moduleRoutes[$module])) {
156 156
             self::$moduleRoutes[$module] = $this->fs->require($moduleRoutes, true);
157 157
         }
158 158
 
Please login to merge, or discard this patch.
src/Middleware/MiddlewareManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
         $currentMiddleware = $this->getMiddleware($request, $response);
61 61
 
62
-        list($request, $response) = $currentMiddleware->apply($request, $response, function ($request, $response) {
62
+        list($request, $response) = $currentMiddleware->apply($request, $response, function($request, $response) {
63 63
             next($this->middlewares);
64 64
             return [$request, $response];
65 65
         });
Please login to merge, or discard this patch.
src/Router/Helpers/router.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
  */
131 131
 function route_cache_settings(): ?array
132 132
 {
133
-	return RouteController::getCurrentRoute()['cache_settings'] ?? null;
133
+    return RouteController::getCurrentRoute()['cache_settings'] ?? null;
134 134
 }
135 135
 
136 136
 /**
Please login to merge, or discard this patch.
src/Environment/Helpers/server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return [];
46 46
         }
47 47
 
48
-        return array_reduce(array_keys($data), function ($headers, $key) use ($data) {
48
+        return array_reduce(array_keys($data), function($headers, $key) use ($data) {
49 49
             if (strpos($key, 'HTTP_') === 0) {
50 50
                 $formattedKey = strtolower(str_replace('_', '-', substr($key, 5)));
51 51
                 $headers[$formattedKey] = $data[$key];
Please login to merge, or discard this patch.
src/App/Helpers/misc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 function _message(string $subject, $params): string
49 49
 {
50 50
     if (is_array($params)) {
51
-        return preg_replace_callback('/{%\d+}/', function () use (&$params) {
51
+        return preg_replace_callback('/{%\d+}/', function() use (&$params) {
52 52
             return array_shift($params);
53 53
         }, $subject);
54 54
     } else {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     for ($i = 0; $i < $length; $i++) {
157 157
         $randomString .= rand(0, 9);
158 158
     }
159
-    return (int)$randomString;
159
+    return (int) $randomString;
160 160
 }
161 161
 
162 162
 /**
Please login to merge, or discard this patch.
src/App/Adapters/ConsoleAppAdapter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 use Quantum\Di\Exceptions\DiException;
27 27
 use ReflectionException;
28 28
 
29
-if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
29
+if (!defined('DS')) {
30
+    define('DS', DIRECTORY_SEPARATOR);
31
+}
30 32
 
31 33
 /**
32 34
  * Class ConsoleAppAdapter
Please login to merge, or discard this patch.