@@ -71,7 +71,7 @@ class MenuNodeBase implements NodeInterface
71
71
*
72
72
* @var array
73
73
*/
74
- protected $ attributes = array () ;
74
+ protected $ attributes = [] ;
75
75
76
76
/**
77
77
* HTML attributes to add to the children list element.
@@ -80,7 +80,7 @@ class MenuNodeBase implements NodeInterface
80
80
*
81
81
* @var array
82
82
*/
83
- protected $ childrenAttributes = array () ;
83
+ protected $ childrenAttributes = [] ;
84
84
85
85
/**
86
86
* HTML attributes to add to items link.
@@ -89,7 +89,7 @@ class MenuNodeBase implements NodeInterface
89
89
*
90
90
* @var array
91
91
*/
92
- protected $ linkAttributes = array () ;
92
+ protected $ linkAttributes = [] ;
93
93
94
94
/**
95
95
* HTML attributes to add to the items label.
@@ -98,14 +98,14 @@ class MenuNodeBase implements NodeInterface
98
98
*
99
99
* @var array
100
100
*/
101
- protected $ labelAttributes = array () ;
101
+ protected $ labelAttributes = [] ;
102
102
103
103
/**
104
104
* Hashmap for extra stuff associated to the node.
105
105
*
106
106
* @var array
107
107
*/
108
- protected $ extras = array () ;
108
+ protected $ extras = [] ;
109
109
110
110
/**
111
111
* Parameters to use when generating the route.
@@ -114,7 +114,7 @@ class MenuNodeBase implements NodeInterface
114
114
*
115
115
* @var array
116
116
*/
117
- protected $ routeParameters = array () ;
117
+ protected $ routeParameters = [] ;
118
118
119
119
/**
120
120
* Set to false to not render.
@@ -351,7 +351,7 @@ public function setChildrenAttributes(array $attributes)
351
351
*/
352
352
public function getChildren ()
353
353
{
354
- $ children = array () ;
354
+ $ children = [] ;
355
355
foreach ($ this ->children as $ child ) {
356
356
if (!$ child instanceof NodeInterface) {
357
357
continue ;
@@ -575,7 +575,7 @@ public function isDisplayable()
575
575
*/
576
576
public function getOptions ()
577
577
{
578
- return array (
578
+ return [
579
579
'uri ' => $ this ->getUri (),
580
580
'route ' => $ this ->getRoute (),
581
581
'label ' => $ this ->getLabel (),
@@ -587,6 +587,6 @@ public function getOptions()
587
587
'routeAbsolute ' => $ this ->getRouteAbsolute (),
588
588
'linkAttributes ' => $ this ->getLinkAttributes (),
589
589
'labelAttributes ' => $ this ->getLabelAttributes (),
590
- ) ;
590
+ ] ;
591
591
}
592
592
}
0 commit comments