Completed
Push — master ( f22323...146580 )
by Chauncey
02:50
created
src/Charcoal/Model/ServiceProvider/ModelServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $container['model/factory'] = function (Container $container) {
71 71
             return new Factory([
72 72
                 'base_class' => ModelInterface::class,
73
-                'arguments'  => [ $container['model/dependencies'] ]
73
+                'arguments'  => [$container['model/dependencies']]
74 74
             ]);
75 75
         };
76 76
 
Please login to merge, or discard this patch.
src/Charcoal/Source/ExpressionFieldTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
             } else {
178 178
                 // Ensure snake_case
179 179
                 $property = strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $property));
180
-                return [ $property ];
180
+                return [$property];
181 181
             }
182 182
         }
183 183
 
Please login to merge, or discard this patch.
src/Charcoal/Model/Service/MetadataLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         $class = $this->classNameFromMetaKey($ident);
266 266
 
267 267
         if (!class_exists($class) && !interface_exists($class)) {
268
-            return [ $ident ];
268
+            return [$ident];
269 269
         }
270 270
 
271 271
         $classes   = array_values(class_parents($class));
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
         $parts = explode('-', $ident);
463 463
         array_walk(
464 464
             $parts,
465
-            function(&$i) {
465
+            function (&$i) {
466 466
                 $i = ucfirst($i);
467 467
             }
468 468
         );
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 
475 475
         array_walk(
476 476
             $parts,
477
-            function(&$i) {
477
+            function (&$i) {
478 478
                 $i = ucfirst($i);
479 479
             }
480 480
         );
Please login to merge, or discard this patch.
src/Charcoal/Loader/CollectionLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     {
170 170
         foreach ($data as $key => $val) {
171 171
             $setter = $this->setter($key);
172
-            if (is_callable([ $this, $setter ])) {
172
+            if (is_callable([$this, $setter])) {
173 173
                 $this->{$setter}($val);
174 174
             } else {
175 175
                 $this->{$key} = $val;
@@ -781,13 +781,13 @@  discard block
 block discarded – undo
781 781
         $obj = $this->createModelFromData($objData);
782 782
 
783 783
         if ($before !== null) {
784
-            call_user_func_array($before, [ &$obj ]);
784
+            call_user_func_array($before, [&$obj]);
785 785
         }
786 786
 
787 787
         $obj->setFlatData($objData);
788 788
 
789 789
         if ($after !== null) {
790
-            call_user_func_array($after, [ &$obj ]);
790
+            call_user_func_array($after, [&$obj]);
791 791
         }
792 792
 
793 793
         return $obj;
Please login to merge, or discard this patch.