@@ -422,7 +422,7 @@ |
||
422 | 422 | "type" => $type, |
423 | 423 | ]; |
424 | 424 | if (strlen($format)) { |
425 | - $dto['properties'][$field]['format'] = $format; |
|
425 | + $dto['properties'][$field]['format'] = $format; |
|
426 | 426 | } |
427 | 427 | } |
428 | 428 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public static function extractVariables(\ReflectionClass $reflector) { |
17 | 17 | $variables = []; |
18 | - foreach($reflector->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) { |
|
18 | + foreach ($reflector->getProperties(\ReflectionProperty::IS_PUBLIC) as $property) { |
|
19 | 19 | $instanceType = self::extractVarType($property->getDocComment()); |
20 | 20 | if (null !== $instanceType) { |
21 | 21 | $variables[$property->getName()] = $instanceType; |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public static function constructInyectableInstance($variable, $singleton, $classNameSpace, $calledClass) |
71 | 71 | { |
72 | - Logger::log('Create inyectable instance for ' . $classNameSpace); |
|
72 | + Logger::log('Create inyectable instance for '.$classNameSpace); |
|
73 | 73 | $reflector = new \ReflectionClass($calledClass); |
74 | 74 | $property = $reflector->getProperty($variable); |
75 | 75 | $varInstanceType = (null === $classNameSpace) ? InjectorHelper::extractVarType($property->getDocComment()) : $classNameSpace; |
76 | 76 | if (true === $singleton && method_exists($varInstanceType, "getInstance")) { |
77 | 77 | $instance = $varInstanceType::getInstance(); |
78 | - } else { |
|
78 | + }else { |
|
79 | 79 | $instance = new $varInstanceType(); |
80 | 80 | } |
81 | 81 | return $instance; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | public static function getClassProperties($class) |
90 | 90 | { |
91 | 91 | $properties = []; |
92 | - Logger::log('Extracting annotations properties from class ' . $class); |
|
92 | + Logger::log('Extracting annotations properties from class '.$class); |
|
93 | 93 | $selfReflector = new \ReflectionClass($class); |
94 | 94 | if (false !== $selfReflector->getParentClass()) { |
95 | 95 | $properties = self::getClassProperties($selfReflector->getParentClass()->getName()); |