@@ -144,6 +144,9 @@ |
||
144 | 144 | return $this; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $class |
|
149 | + */ |
|
147 | 150 | private function getObjectFromClass($class) |
148 | 151 | { |
149 | 152 | if (is_object($class)) { |
@@ -129,12 +129,12 @@ |
||
129 | 129 | */ |
130 | 130 | public function withImplementation($class) |
131 | 131 | { |
132 | - $this->converter = function () use ($class) { |
|
132 | + $this->converter = function() use ($class) { |
|
133 | 133 | $object = $this->getObjectFromClass($class); |
134 | 134 | |
135 | 135 | if (!is_subclass_of($object, Converter::class)) { |
136 | 136 | throw new ObjectIsNotConverterException( |
137 | - 'Object of type ' . get_class($object) . ' does not implement ' . Converter::class |
|
137 | + 'Object of type '.get_class($object).' does not implement '.Converter::class |
|
138 | 138 | ); |
139 | 139 | } |
140 | 140 |