Passed
Push — master ( f7c593...52e515 )
by Odiseo
04:20
created
src/Menu/VendorFormMenuBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.