Passed
Pull Request — master (#64)
by
unknown
03:00
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/Routes/ModuleLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public static function loadModulesRoutes(Router $router, FileSystem $fs)
37 37
     {
38
-        $modules = require_once base_dir() . DS .'shared' . DS .  'config' . DS . 'modules.php';
38
+        $modules = require_once base_dir() . DS . 'shared' . DS . 'config' . DS . 'modules.php';
39 39
 
40 40
         foreach ($modules['modules'] as $module) {
41 41
             $moduleRoutes = modules_dir() . DS . $module . DS . 'Config' . DS . 'routes.php';
Please login to merge, or discard this patch.
src/Http/Response/HttpResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@
 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
     /**
Please login to merge, or discard this patch.