@@ -71,7 +71,7 @@ class MenuNodeBase implements NodeInterface
7171 *
7272 * @var array
7373 */
74- protected $ attributes = array () ;
74+ protected $ attributes = [] ;
7575
7676 /**
7777 * HTML attributes to add to the children list element.
@@ -80,7 +80,7 @@ class MenuNodeBase implements NodeInterface
8080 *
8181 * @var array
8282 */
83- protected $ childrenAttributes = array () ;
83+ protected $ childrenAttributes = [] ;
8484
8585 /**
8686 * HTML attributes to add to items link.
@@ -89,7 +89,7 @@ class MenuNodeBase implements NodeInterface
8989 *
9090 * @var array
9191 */
92- protected $ linkAttributes = array () ;
92+ protected $ linkAttributes = [] ;
9393
9494 /**
9595 * HTML attributes to add to the items label.
@@ -98,14 +98,14 @@ class MenuNodeBase implements NodeInterface
9898 *
9999 * @var array
100100 */
101- protected $ labelAttributes = array () ;
101+ protected $ labelAttributes = [] ;
102102
103103 /**
104104 * Hashmap for extra stuff associated to the node.
105105 *
106106 * @var array
107107 */
108- protected $ extras = array () ;
108+ protected $ extras = [] ;
109109
110110 /**
111111 * Parameters to use when generating the route.
@@ -114,7 +114,7 @@ class MenuNodeBase implements NodeInterface
114114 *
115115 * @var array
116116 */
117- protected $ routeParameters = array () ;
117+ protected $ routeParameters = [] ;
118118
119119 /**
120120 * Set to false to not render.
@@ -351,7 +351,7 @@ public function setChildrenAttributes(array $attributes)
351351 */
352352 public function getChildren ()
353353 {
354- $ children = array () ;
354+ $ children = [] ;
355355 foreach ($ this ->children as $ child ) {
356356 if (!$ child instanceof NodeInterface) {
357357 continue ;
@@ -575,7 +575,7 @@ public function isDisplayable()
575575 */
576576 public function getOptions ()
577577 {
578- return array (
578+ return [
579579 'uri ' => $ this ->getUri (),
580580 'route ' => $ this ->getRoute (),
581581 'label ' => $ this ->getLabel (),
@@ -587,6 +587,6 @@ public function getOptions()
587587 'routeAbsolute ' => $ this ->getRouteAbsolute (),
588588 'linkAttributes ' => $ this ->getLinkAttributes (),
589589 'labelAttributes ' => $ this ->getLabelAttributes (),
590- ) ;
590+ ] ;
591591 }
592592}
0 commit comments