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