@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | $this->clonersConfig = $this->getClonersConfig($serviceManager); |
48 | 48 | } |
49 | 49 | if (array_key_exists($requestedName, $this->clonersConfig)) { |
50 | - if (array_key_exists('class', $this->clonersConfig[$requestedName])) { |
|
50 | + if (array_key_exists('class', $this->clonersConfig[ $requestedName ])) { |
|
51 | 51 | $class = Cloner::class; |
52 | - return is_a($this->clonersConfig[$requestedName]['class'], $class, true); |
|
52 | + return is_a($this->clonersConfig[ $requestedName ][ 'class' ], $class, true); |
|
53 | 53 | } else { |
54 | 54 | return true; |
55 | 55 | } |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
69 | 69 | { |
70 | - Assertion::isArray($this->clonersConfig[$requestedName]); |
|
71 | - $options = new Options\ClonerOptions($this->clonersConfig[$requestedName]); |
|
70 | + Assertion::isArray($this->clonersConfig[ $requestedName ]); |
|
71 | + $options = new Options\ClonerOptions($this->clonersConfig[ $requestedName ]); |
|
72 | 72 | |
73 | 73 | Assertion::isInstanceOf($serviceLocator, ClonerManagerInterface::class); |
74 | 74 | Assertion::isInstanceOf($options, Options\ClonerOptions::class); |