@@ -62,7 +62,7 @@ public function initializeArguments()
6262 * @return string The rendered link
6363 *
6464 */
65- public function render ($ pluginName , $ extensionName , $ action = null , array $ arguments = array () , $ section = '' , $ format = '' , $ ajax = true , $ contextRecord = 'current ' )
65+ public function render ($ pluginName , $ extensionName , $ action = null , array $ arguments = [] , $ section = '' , $ format = '' , $ ajax = true , $ contextRecord = 'current ' )
6666 {
6767 if ($ ajax === true ) {
6868 $ uri = $ this ->getAjaxUri ();
@@ -86,7 +86,7 @@ protected function getAjaxUri()
8686 $ pluginName = $ this ->arguments ['pluginName ' ];
8787 $ extensionName = $ this ->arguments ['extensionName ' ];
8888 $ contextRecord = $ this ->arguments ['contextRecord ' ];
89- $ arguments = $ this ->hasArgument ('arguments ' ) ? $ this ->arguments ['arguments ' ] : array () ;
89+ $ arguments = $ this ->hasArgument ('arguments ' ) ? $ this ->arguments ['arguments ' ] : [] ;
9090 if ($ contextRecord === 'current ' ) {
9191 if (
9292 $ pluginName !== $ this ->controllerContext ->getRequest ()->getPluginName ()
@@ -104,10 +104,10 @@ protected function getAjaxUri()
104104 $ argumentPrefix = $ this ->controllerContext ->getRequest ()->getArgumentPrefix ();
105105
106106 $ uriBuilder ->reset ()
107- ->setArguments (array_merge (array ( $ argumentPrefix => $ arguments) , $ additionalParams ))
107+ ->setArguments (array_merge ([ $ argumentPrefix => $ arguments] , $ additionalParams ))
108108 ->setSection ($ this ->arguments ['section ' ])
109109 ->setAddQueryString (true )
110- ->setArgumentsToBeExcludedFromQueryString (array ( $ argumentPrefix , 'cHash ' ) )
110+ ->setArgumentsToBeExcludedFromQueryString ([ $ argumentPrefix , 'cHash ' ] )
111111 ->setFormat ($ this ->arguments ['format ' ])
112112 ->setUseCacheHash (true );
113113
@@ -128,7 +128,7 @@ protected function getWidgetUri()
128128 {
129129 $ uriBuilder = $ this ->controllerContext ->getUriBuilder ();
130130 $ argumentPrefix = $ this ->controllerContext ->getRequest ()->getArgumentPrefix ();
131- $ arguments = $ this ->hasArgument ('arguments ' ) ? $ this ->arguments ['arguments ' ] : array () ;
131+ $ arguments = $ this ->hasArgument ('arguments ' ) ? $ this ->arguments ['arguments ' ] : [] ;
132132 if ($ this ->hasArgument ('action ' )) {
133133 $ arguments ['action ' ] = $ this ->arguments ['action ' ];
134134 }
@@ -139,10 +139,10 @@ protected function getWidgetUri()
139139 $ arguments ['addQueryStringMethod ' ] = $ this ->arguments ['addQueryStringMethod ' ];
140140 }
141141 $ uriBuilder ->reset ()
142- ->setArguments (array ( $ argumentPrefix => $ arguments) )
142+ ->setArguments ([ $ argumentPrefix => $ arguments] )
143143 ->setSection ($ this ->arguments ['section ' ])
144144 ->setAddQueryString (true )
145- ->setArgumentsToBeExcludedFromQueryString (array ( $ argumentPrefix , 'cHash ' ) )
145+ ->setArgumentsToBeExcludedFromQueryString ([ $ argumentPrefix , 'cHash ' ] )
146146 ->setFormat ($ this ->arguments ['format ' ]);
147147
148148 // TYPO3 6.0 compatibility check:
0 commit comments