@@ -52,7 +52,7 @@ |
||
52 | 52 | public function init(ModuleManagerInterface $manager) |
53 | 53 | { |
54 | 54 | if (!$manager instanceof ModuleManager) { |
55 | - $errMsg =sprintf('Module manager not implement %s', ModuleManager::class); |
|
55 | + $errMsg = sprintf('Module manager not implement %s', ModuleManager::class); |
|
56 | 56 | throw new Exception\InvalidArgumentException($errMsg); |
57 | 57 | } |
58 | 58 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $queue = $this->resolvers->getIterator(); |
85 | 85 | $queue->setExtractFlags(PriorityQueue::EXTR_PRIORITY); |
86 | 86 | $extractedNode = $queue->extract(); |
87 | - $priority = $extractedNode[0] + 1; |
|
87 | + $priority = $extractedNode[ 0 ] + 1; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | $this->resolvers->insert( |
@@ -21,14 +21,14 @@ |
||
21 | 21 | * |
22 | 22 | * @var array |
23 | 23 | */ |
24 | - protected $contextMap = []; |
|
24 | + protected $contextMap = [ ]; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * ResolverByMap constructor. |
28 | 28 | * |
29 | 29 | * @param array $contextMap |
30 | 30 | */ |
31 | - public function __construct(array $contextMap = []) |
|
31 | + public function __construct(array $contextMap = [ ]) |
|
32 | 32 | { |
33 | 33 | $this->setContextMap($contextMap); |
34 | 34 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | |
41 | 41 | $creationOptions = $this->getCreationOptions(); |
42 | - $options = is_array($creationOptions) ? $creationOptions : []; |
|
42 | + $options = is_array($creationOptions) ? $creationOptions : [ ]; |
|
43 | 43 | |
44 | 44 | $chain = new EntryNameResolverChain(); |
45 | 45 | foreach ($options as $entryNameResolverConfig) { |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | throw new Exception\RuntimeException($errMsg); |
54 | 54 | } |
55 | 55 | |
56 | - $name = $entryNameResolverConfig['name']; |
|
56 | + $name = $entryNameResolverConfig[ 'name' ]; |
|
57 | 57 | |
58 | - $options = array_key_exists('options', $entryNameResolverConfig) ? $entryNameResolverConfig['options'] : []; |
|
58 | + $options = array_key_exists('options', $entryNameResolverConfig) ? $entryNameResolverConfig[ 'options' ] : [ ]; |
|
59 | 59 | |
60 | 60 | if (!is_array($options)) { |
61 | 61 | $errMsg = 'Resolver options is not array'; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** @var EntryNameResolverInterface $resolver */ |
66 | 66 | $resolver = $serviceLocator->get($name, $options); |
67 | 67 | |
68 | - $priority = array_key_exists('priority', $options) ? (integer)$options['priority'] : EntryNameResolverChain::DEFAULT_PRIORITY; |
|
68 | + $priority = array_key_exists('priority', $options) ? (integer)$options[ 'priority' ] : EntryNameResolverChain::DEFAULT_PRIORITY; |
|
69 | 69 | |
70 | 70 | $chain->attach($resolver, $priority); |
71 | 71 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * |
23 | 23 | * @var array |
24 | 24 | */ |
25 | - protected $entryNameResolvers = []; |
|
25 | + protected $entryNameResolvers = [ ]; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @inheritdoc |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @return $this |
43 | 43 | */ |
44 | - public function setEntryNameResolvers(array $entryNameResolvers = []) |
|
44 | + public function setEntryNameResolvers(array $entryNameResolvers = [ ]) |
|
45 | 45 | { |
46 | 46 | $this->entryNameResolvers = $entryNameResolvers; |
47 | 47 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public function createService(ServiceLocatorInterface $serviceLocator) |
31 | 31 | { |
32 | 32 | $creationOptions = $this->getCreationOptions(); |
33 | - $options = is_array($creationOptions) ? $creationOptions : []; |
|
33 | + $options = is_array($creationOptions) ? $creationOptions : [ ]; |
|
34 | 34 | |
35 | 35 | |
36 | 36 |