Passed
Push — main ( d73681...8fb716 )
by Sammy
01:46
created
LeMarchand.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function has($configuration)
32 32
     {
33
-      try{
33
+      try {
34 34
         $this->get($configuration);
35 35
         return true;
36 36
       }
37
-      catch(NotFoundExceptionInterface $e){
37
+      catch (NotFoundExceptionInterface $e) {
38 38
         return false;
39 39
       }
40
-      catch(ContainerExceptionInterface $e){
40
+      catch (ContainerExceptionInterface $e) {
41 41
         return false;
42 42
       }
43 43
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
         if (preg_match('/.+Interface$/', $configuration, $m) === 1) {
65 65
             $wire = $this->get('settings.interface_implementations');
66
-            if(isset($wire[$configuration]))
66
+            if (isset($wire[$configuration]))
67 67
               return $this->getInstance($wire[$configuration]);
68 68
         }
69 69
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         }
79 79
         // not fully namespaced, lets cascade
80 80
         foreach ($this->getSettings('settings.controller_namespaces') as $cns) {
81
-            if (!is_null($instance = $this->getInstance($cns . $controller_name))) {
81
+            if (!is_null($instance = $this->getInstance($cns.$controller_name))) {
82 82
                 return $instance;
83 83
             }
84 84
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             $construction_args = [];
94 94
             if (!is_null($rc->getConstructor())) {
95 95
                 foreach ($rc->getConstructor()->getParameters() as $param) {
96
-                    $construction_args [] = $this->get($param->getType() . '');
96
+                    $construction_args [] = $this->get($param->getType().'');
97 97
                 }
98 98
                 $instance = $rc->newInstanceArgs($construction_args);
99 99
             } else {
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,11 +33,9 @@  discard block
 block discarded – undo
33 33
       try{
34 34
         $this->get($configuration);
35 35
         return true;
36
-      }
37
-      catch(NotFoundExceptionInterface $e){
36
+      } catch(NotFoundExceptionInterface $e){
38 37
         return false;
39
-      }
40
-      catch(ContainerExceptionInterface $e){
38
+      } catch(ContainerExceptionInterface $e){
41 39
         return false;
42 40
       }
43 41
     }
@@ -63,8 +61,9 @@  discard block
 block discarded – undo
63 61
         }
64 62
         if (preg_match('/.+Interface$/', $configuration, $m) === 1) {
65 63
             $wire = $this->get('settings.interface_implementations');
66
-            if(isset($wire[$configuration]))
67
-              return $this->getInstance($wire[$configuration]);
64
+            if(isset($wire[$configuration])) {
65
+                          return $this->getInstance($wire[$configuration]);
66
+            }
68 67
         }
69 68
 
70 69
         throw new ConfigurationException($configuration);
Please login to merge, or discard this patch.