@@ -93,10 +93,10 @@ |
||
93 | 93 | if (is_array($relationData) |
94 | 94 | || $relationData instanceof \Traversable |
95 | 95 | ) { |
96 | - $cloneData = []; |
|
96 | + $cloneData = [ ]; |
|
97 | 97 | foreach ($relationData as $data) { |
98 | 98 | if ($relationArchiverResult = $this->getRelationClonerResult($options->getClonerName(), $data)) { |
99 | - $cloneData[] = $relationArchiverResult; |
|
99 | + $cloneData[ ] = $relationArchiverResult; |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | } else { |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * @var Cloner\RelationOptions[] |
21 | 21 | */ |
22 | - protected $relations = []; |
|
22 | + protected $relations = [ ]; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @return Cloner\RelationOptions[] |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | public function setRelations($relations) |
38 | 38 | { |
39 | 39 | foreach ($relations as $name => $options) { |
40 | - $this->relations[$name] = new Cloner\RelationOptions($options); |
|
40 | + $this->relations[ $name ] = new Cloner\RelationOptions($options); |
|
41 | 41 | } |
42 | 42 | return $this; |
43 | 43 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - private $cloners = []; |
|
21 | + private $cloners = [ ]; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @return array |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $this->clonersConfig = $this->getClonersConfig($serviceManager); |
43 | 43 | } |
44 | 44 | if (array_key_exists($requestedName, $this->clonersConfig)) { |
45 | - if (array_key_exists('class', $this->clonersConfig[$requestedName])) { |
|
46 | - return is_a($this->clonersConfig[$requestedName]['class'], Cloner::class); |
|
45 | + if (array_key_exists('class', $this->clonersConfig[ $requestedName ])) { |
|
46 | + return is_a($this->clonersConfig[ $requestedName ][ 'class' ], Cloner::class); |
|
47 | 47 | } else { |
48 | 48 | return true; |
49 | 49 | } |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
63 | 63 | { |
64 | - Assertion::isArray($this->clonersConfig[$requestedName]); |
|
65 | - $options = new Options\ClonerOptions($this->clonersConfig[$requestedName]); |
|
64 | + Assertion::isArray($this->clonersConfig[ $requestedName ]); |
|
65 | + $options = new Options\ClonerOptions($this->clonersConfig[ $requestedName ]); |
|
66 | 66 | |
67 | 67 | Assertion::isInstanceOf($serviceLocator, ClonerManagerInterface::class); |
68 | 68 | Assertion::isInstanceOf($options, Options\ClonerOptions::class); |