Passed
Branch master (4e8cc8)
by Tolan
04:09
created
lib/DependencyInjector.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $ref = new \ReflectionClass($object);
70 70
         try{
71 71
             $refMethod = $ref->getMethod( $methodName );
72
-        }catch( ReflectionException  $e ){
72
+        } catch( ReflectionException  $e ){
73 73
             return null;
74 74
         }
75 75
         
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $className = $p->getClass()->name;
79 79
             if( $className === "Pimple\\Container" ){
80 80
                 $toInject[] = $this->container;
81
-            }else{
81
+            } else{
82 82
                 $toInject[] = $this->container[ $className ];
83 83
             }
84 84
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $ref = new \ReflectionClass($classToBuildName);
98 98
         try{
99 99
             $constr = $ref->getConstructor();
100
-        }catch( ReflectionException  $e ){
100
+        } catch( ReflectionException  $e ){
101 101
             return null;
102 102
         }
103 103
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $classToInjectName = $p->getClass()->name;
111 111
             if( $classToInjectName === "Pimple\\Container" ){
112 112
                 $toInject[] = $this->container;
113
-            }else{
113
+            } else{
114 114
                 $toInject[] = $this->container[ $classToInjectName ];
115 115
             }
116 116
         }
Please login to merge, or discard this patch.