@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | $this->eventDispatcher = $eventDispatcher; |
25 | 25 | } |
26 | 26 | |
27 | - public function createMenu(array $options = []): ItemInterface |
|
27 | + public function createMenu(array $options = [ ]): ItemInterface |
|
28 | 28 | { |
29 | 29 | $menu = $this->factory->createItem('root'); |
30 | 30 | |
31 | - if (!array_key_exists('vendor', $options) || !$options['vendor'] instanceof VendorInterface) { |
|
31 | + if (!array_key_exists('vendor', $options) || !$options[ 'vendor' ] instanceof VendorInterface) { |
|
32 | 32 | return $menu; |
33 | 33 | } |
34 | 34 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ; |
53 | 53 | |
54 | 54 | $this->eventDispatcher->dispatch( |
55 | - new VendorFormMenuBuilderEvent($this->factory, $menu, $options['vendor']) |
|
55 | + new VendorFormMenuBuilderEvent($this->factory, $menu, $options[ 'vendor' ]) |
|
56 | 56 | ); |
57 | 57 | |
58 | 58 | return $menu; |