Completed
Push — master ( e0dfe4...5d7cf9 )
by Arman
16s queued 12s
created
src/Libraries/Storage/LocalFileSystemAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function fileName(string $path): string
184 184
     {
185
-        return (string)pathinfo($path, PATHINFO_FILENAME);
185
+        return (string) pathinfo($path, PATHINFO_FILENAME);
186 186
     }
187 187
 
188 188
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function extension(string $path): string
194 194
     {
195
-        return (string)pathinfo($path, PATHINFO_EXTENSION);
195
+        return (string) pathinfo($path, PATHINFO_EXTENSION);
196 196
     }
197 197
 
198 198
     /**
Please login to merge, or discard this patch.
src/Http/Request.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 /**
19 19
  * Class Request
20 20
  * @package Quantum\Http
21
-
22 21
  * @method static void create(string $method, string $url, array $data = null, array $file = null)
23 22
  * @method static void flush()
24 23
  * @method static string|null getMethod()
Please login to merge, or discard this patch.
src/Http/Request/Params.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $getParams = [];
37 37
 
38 38
         if (!empty($_GET)) {
39
-            $getParams = filter_input_array(INPUT_GET, FILTER_DEFAULT) ?: [] ;
39
+            $getParams = filter_input_array(INPUT_GET, FILTER_DEFAULT) ?: [];
40 40
         }
41 41
 
42 42
         return $getParams;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             if (strpos($block, 'filename') !== false) {
173 173
                 list($nameParam, $file) = self::getParsedFile($block);
174 174
 
175
-                if(!$file) {
175
+                if (!$file) {
176 176
                     continue;
177 177
                 }
178 178
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     {
225 225
         list($name, $filename, $type, $content) = self::parseFileData($block);
226 226
 
227
-        if(!$content) {
227
+        if (!$content) {
228 228
             return null;
229 229
         }
230 230
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             'size' => $fs->size($tempName),
243 243
         ]);
244 244
 
245
-        register_shutdown_function(function () use ($fs, $tempName) {
245
+        register_shutdown_function(function() use ($fs, $tempName) {
246 246
             $fs->remove($tempName);
247 247
         });
248 248
 
Please login to merge, or discard this patch.
src/Libraries/Database/Idiorm/Statements/Reducer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function select(...$columns): DbalInterface
33 33
     {
34
-        array_walk($columns, function (&$column) {
34
+        array_walk($columns, function(&$column) {
35 35
             if (is_array($column)) {
36 36
                 $column = array_flip($column);
37 37
             }
Please login to merge, or discard this patch.
src/Libraries/Database/Sleekdb/Statements/Join.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $switch = $nextItem['switch'];
84 84
         $joinType = $nextItem['type'];
85 85
 
86
-        $queryBuilder->join(function ($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) {
86
+        $queryBuilder->join(function($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) {
87 87
 
88 88
             $newQueryBuilder = (new self($modelToJoin->table))->getOrmModel()->createQueryBuilder();
89 89
 
Please login to merge, or discard this patch.
src/Libraries/Database/Sleekdb/Statements/Reducer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function select(...$columns): DbalInterface
33 33
     {
34
-        array_walk($columns, function (&$column) {
34
+        array_walk($columns, function(&$column) {
35 35
             if (is_array($column)) {
36 36
                 $column = array_flip($column);
37 37
             }
Please login to merge, or discard this patch.
src/Http/Response/HttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
      * @param array $arr
253 253
      * @param \SimpleXMLElement $simpleXML
254 254
      */
255
-    private static function composeXML(array $arr, SimpleXMLElement &$simpleXML)
255
+    private static function composeXML(array $arr, SimpleXMLElement & $simpleXML)
256 256
     {
257 257
         foreach ($arr as $key => $value) {
258 258
             if (is_numeric($key)) {
Please login to merge, or discard this patch.
src/Migration/MigrationManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
         $this->migrationFolder = base_dir() . DS . 'migrations';
87 87
         
88
-        if(!$this->fs->isDirectory($this->migrationFolder)) {
88
+        if (!$this->fs->isDirectory($this->migrationFolder)) {
89 89
             throw FileSystemException::directoryNotExists($this->migrationFolder);
90 90
         }
91 91
     }
Please login to merge, or discard this patch.
src/App.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
21 21
 use Quantum\Loader\Setup;
22 22
 use Quantum\Di\Di;
23 23
 
24
-if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
24
+if (!defined('DS')) {
25
+    define('DS', DIRECTORY_SEPARATOR);
26
+}
25 27
 
26 28
 /**
27 29
  * Class App
Please login to merge, or discard this patch.