Passed
Push — main ( 9f095f...31373f )
by Sammy
01:22
created
ReflectionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 class ReflectionFactory
6 6
 {
7
-  public static function make($class, $construction_args = [], $container){
7
+  public static function make($class, $construction_args = [], $container) {
8 8
     try {
9 9
         $rc = new \ReflectionClass($class);
10 10
         $instance = null;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
               if ($param->getType()) {
42 42
                   $construction_args [] = $container->get($param->getType()->getName());
43 43
               } else {
44
-                  $setting = 'settings.Constructor.' . $constructor->class . '.' . $param->getName();
44
+                  $setting = 'settings.Constructor.'.$constructor->class.'.'.$param->getName();
45 45
                   $construction_args [] = $container->getSettings($setting);
46 46
               }
47 47
           }
Please login to merge, or discard this patch.
LeMarchand.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         foreach ($dbg['interface_wiring'] as $interface => $wire) {
60 60
             if (is_array($wire)) {
61
-                $wire = array_shift($wire) . ' --array #' . count($wire);
61
+                $wire = array_shift($wire).' --array #'.count($wire);
62 62
             }
63 63
             $dbg['interface_wiring'][$interface] = $wire;
64 64
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         return $ret;
134 134
     }
135 135
 
136
-    private function cascadeInstance($configuration){
136
+    private function cascadeInstance($configuration) {
137 137
         $class_name = $configuration->getModelOrControllerName();
138 138
         $class_name = $this->cascadeNamespace($class_name);
139 139
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
         // not fully namespaced, lets cascade
173 173
         foreach ($this->namespace_cascade as $ns) {
174
-            if (class_exists($fully_namespaced = $ns . $class_name)) {
174
+            if (class_exists($fully_namespaced = $ns.$class_name)) {
175 175
                 $this->resolved($class_name, $fully_namespaced);
176 176
                 return $fully_namespaced;
177 177
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 
140 140
         if ($configuration->hasClassNameModifier()) {
141 141
             $ret = $class_name;
142
-        }
143
-        elseif ($configuration->hasNewInstanceModifier()) {
142
+        } elseif ($configuration->hasNewInstanceModifier()) {
144 143
             $ret = $this->makeInstance($class_name);
145 144
         }
146 145
 
Please login to merge, or discard this patch.