Completed
Push — master ( c6f836...23da77 )
by Arman
18s queued 15s
created
src/Paginator/Adapters/ModelPaginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             ->offset($this->perPage * ($this->page - 1))
76 76
             ->get();
77 77
 
78
-        $models = array_map(function ($item) {
78
+        $models = array_map(function($item) {
79 79
             return wrapToModel($item, $this->modelClass);
80 80
         }, $ormInstances);
81 81
 
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.
src/Http/Traits/Request/RawInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
             'size' => $fs->size($tempName),
235 235
         ]);
236 236
 
237
-        register_shutdown_function(function () use ($fs, $tempName) {
237
+        register_shutdown_function(function() use ($fs, $tempName) {
238 238
             $fs->remove($tempName);
239 239
         });
240 240
 
Please login to merge, or discard this patch.
src/Http/Traits/Request/Header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $bearerToken = null;
94 94
 
95
-        $authorization = (string)self::getHeader('Authorization');
95
+        $authorization = (string) self::getHeader('Authorization');
96 96
 
97 97
         if (self::hasHeader('Authorization')) {
98 98
             if (preg_match('/Bearer\s(\S+)/', $authorization, $matches)) {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             return null;
122 122
         }
123 123
 
124
-        $authorization = (string)self::getHeader('Authorization');
124
+        $authorization = (string) self::getHeader('Authorization');
125 125
 
126 126
         if (preg_match('/Basic\s(\S+)/', $authorization, $matches)) {
127 127
             $decoded = base64_decode($matches[1], true);
Please login to merge, or discard this patch.
src/Http/Traits/Request/Body.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public static function get(string $key, string $default = null, bool $raw = false)
51 51
     {
52
-        if(!self::has($key)) {
52
+        if (!self::has($key)) {
53 53
             return $default;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/Http/Request/HttpRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         $csrfToken = null;
196 196
 
197 197
         if (self::has(Csrf::TOKEN_KEY)) {
198
-            $csrfToken = (string)self::get(Csrf::TOKEN_KEY);
198
+            $csrfToken = (string) self::get(Csrf::TOKEN_KEY);
199 199
         } elseif (self::hasHeader('X-' . Csrf::TOKEN_KEY)) {
200 200
             $csrfToken = self::getHeader('X-' . Csrf::TOKEN_KEY);
201 201
         }
@@ -275,6 +275,6 @@  discard block
 block discarded – undo
275 275
      */
276 276
     private static function setRequestHeaders()
277 277
     {
278
-        self::$__headers = array_change_key_case((array)getallheaders());
278
+        self::$__headers = array_change_key_case((array) getallheaders());
279 279
     }
280 280
 }
281 281
\ No newline at end of file
Please login to merge, or discard this patch.