Completed
Push — master ( 2a5888...11798c )
by Arman
14s
created
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.
src/Paginator/Traits/PaginatorTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      */
138 138
     public function lastPageNumber(): int
139 139
     {
140
-        return (int)ceil($this->total() / $this->perPage);
140
+        return (int) ceil($this->total() / $this->perPage);
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Sleekdb/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function get(): array
35 35
     {
36 36
         try {
37
-            return array_map(function ($element) {
37
+            return array_map(function($element) {
38 38
                 $item = clone $this;
39 39
                 $item->data = $element;
40 40
                 $item->modifiedFields = $element;
Please login to merge, or discard this patch.
src/View/QtView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         $this->layoutFile = $layoutFile;
109 109
 
110
-        if(!empty($assets)) {
110
+        if (!empty($assets)) {
111 111
             $this->assets = array_merge($this->assets, $assets);
112 112
         }
113 113
     }
Please login to merge, or discard this patch.
src/Libraries/Storage/Adapters/Local/LocalFileSystemAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     {
219 219
         $lines = file($filename, FILE_IGNORE_NEW_LINES);
220 220
 
221
-        if(!$lines) {
221
+        if (!$lines) {
222 222
             return [];
223 223
         }
224 224
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      */
237 237
     public function fileNameWithExtension(string $path): string
238 238
     {
239
-        return (string)pathinfo($path, PATHINFO_BASENAME);
239
+        return (string) pathinfo($path, PATHINFO_BASENAME);
240 240
     }
241 241
 
242 242
     /**
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function fileName(string $path): string
248 248
     {
249
-        return (string)pathinfo($path, PATHINFO_FILENAME);
249
+        return (string) pathinfo($path, PATHINFO_FILENAME);
250 250
     }
251 251
 
252 252
     /**
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function extension(string $path): string
258 258
     {
259
-        return (string)pathinfo($path, PATHINFO_EXTENSION);
259
+        return (string) pathinfo($path, PATHINFO_EXTENSION);
260 260
     }
261 261
 
262 262
     /**
Please login to merge, or discard this patch.
src/Http/Traits/Response/Body.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
      * @param array $arr
302 302
      * @param SimpleXMLElement $simpleXML
303 303
      */
304
-    private static function composeXML(array $arr, SimpleXMLElement &$simpleXML)
304
+    private static function composeXML(array $arr, SimpleXMLElement & $simpleXML)
305 305
     {
306 306
         foreach ($arr as $key => $value) {
307 307
             if (is_numeric($key)) {
Please login to merge, or discard this patch.