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