Passed
Push — main ( 649c5d...191e86 )
by Sammy
01:50
created
LeMarchand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     private function cascadeControllers($controller_name)
59 59
     {
60 60
       foreach ($this->getSettings('settings.controllers_namespaces') as $cns) {
61
-          if (!is_null($instance = $this->getInstance($cns . $controller_name))) {
61
+          if (!is_null($instance = $this->getInstance($cns.$controller_name))) {
62 62
               return $instance;
63 63
           }
64 64
       }
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
 
68 68
     private function getInstance($class)
69 69
     {
70
-      try{
70
+      try {
71 71
         $rc = new \ReflectionClass($class);
72
-        $instance=null;
72
+        $instance = null;
73 73
         $construction_args = [];
74 74
         if (!is_null($rc->getConstructor())) {
75 75
             foreach ($rc->getConstructor()->getParameters() as $param) {
76
-                $construction_args [] = $this->get($param->getType() . '');
76
+                $construction_args [] = $this->get($param->getType().'');
77 77
             }
78 78
             $instance = $rc->newInstanceArgs($construction_args);
79 79
         } else {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         return $instance;
88 88
       }
89
-      catch(\ReflectionException $e)
89
+      catch (\ReflectionException $e)
90 90
       {
91 91
         return null;
92 92
       }
Please login to merge, or discard this patch.