Passed
Branch main (9b2adc)
by Sammy
07:01 queued 05:15
created
LeMarchand.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $dbg = get_object_vars($this);
60 60
 
61
-        foreach($dbg['instance_cache'] as $class => $instance)
61
+        foreach ($dbg['instance_cache'] as $class => $instance)
62 62
           $dbg['instance_cache'][$class] = true;
63 63
 
64
-        foreach($dbg['interface_wiring'] as $interface => $wire)
65
-          $dbg['interface_wiring'][$interface] = is_array($wire) ? array_shift($wire) . ' --array #' .count($wire) : $wire;
64
+        foreach ($dbg['interface_wiring'] as $interface => $wire)
65
+          $dbg['interface_wiring'][$interface] = is_array($wire) ? array_shift($wire).' --array #'.count($wire) : $wire;
66 66
 
67 67
         return $dbg;
68 68
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         // vdt($configuration, __FUNCTION__);
105 105
         if (preg_match(self::RX_MVC, $configuration, $m) === 1) {
106
-            $class_name = $this->cascadeNamespace($m[1] . '\\' . $m[2]);
106
+            $class_name = $this->cascadeNamespace($m[1].'\\'.$m[2]);
107 107
             // vd($configuration, $class_name);
108 108
 
109 109
             if (!isset($m[3])) {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         // not fully namespaced, lets cascade
168 168
         foreach ($this->namespace_cascade as $ns) {
169
-            if (class_exists($fully_namespaced = $ns . $class_name)) {
169
+            if (class_exists($fully_namespaced = $ns.$class_name)) {
170 170
                 $this->resolved($class_name, $fully_namespaced);
171 171
                 return $fully_namespaced;
172 172
             }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                 if ($param->getType()) {
263 263
                     $construction_args [] = $this->get($param->getType()->getName());
264 264
                 } else {
265
-                    $setting = 'settings.Constructor.' . $constructor->class . '.' . $param->getName();
265
+                    $setting = 'settings.Constructor.'.$constructor->class.'.'.$param->getName();
266 266
                     $construction_args [] = $this->getSettings($setting);
267 267
                 }
268 268
                 // } catch (NotFoundExceptionInterface $e) {
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,11 +58,13 @@
 block discarded – undo
58 58
     {
59 59
         $dbg = get_object_vars($this);
60 60
 
61
-        foreach($dbg['instance_cache'] as $class => $instance)
62
-          $dbg['instance_cache'][$class] = true;
61
+        foreach($dbg['instance_cache'] as $class => $instance) {
62
+                  $dbg['instance_cache'][$class] = true;
63
+        }
63 64
 
64
-        foreach($dbg['interface_wiring'] as $interface => $wire)
65
-          $dbg['interface_wiring'][$interface] = is_array($wire) ? array_shift($wire) . ' --array #' .count($wire) : $wire;
65
+        foreach($dbg['interface_wiring'] as $interface => $wire) {
66
+                  $dbg['interface_wiring'][$interface] = is_array($wire) ? array_shift($wire) . ' --array #' .count($wire) : $wire;
67
+        }
66 68
 
67 69
         return $dbg;
68 70
     }
Please login to merge, or discard this patch.