Passed
Push — master ( 8994b4...b44688 )
by Arman
03:12 queued 12s
created
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/Routes/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
             } else {
170 170
                 $this->isGroup = false;
171 171
                 foreach ($this->virtualRoutes[$lastKeyOfFirstRound] as &$route) {
172
-                    if(!key_exists('middlewares', $route)) {
172
+                    if (!key_exists('middlewares', $route)) {
173 173
                         $route['middlewares'] = $middlewares;
174 174
                     } else {
175 175
                         $reversedMiddlewares = array_reverse($middlewares);
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/Http/Response/HttpResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
      * @param array $data
237 237
      * @return string
238 238
      */
239
-    public static function getJsonPData($data){
240
-        return  self::$callbackFunction.'('.json_encode($data).")";
239
+    public static function getJsonPData($data) {
240
+        return  self::$callbackFunction . '(' . json_encode($data) . ")";
241 241
     }
242 242
 
243 243
     /**
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param array $arr
301 301
      * @param \SimpleXMLElement $simpleXML
302 302
      */
303
-    private static function composeXML(array $arr, SimpleXMLElement &$simpleXML)
303
+    private static function composeXML(array $arr, SimpleXMLElement & $simpleXML)
304 304
     {
305 305
         foreach ($arr as $key => $value) {
306 306
             if (is_numeric($key)) {
Please login to merge, or discard this patch.