Skip to content

Commit e6de8b7

Browse files
authored
TASK: Use shorthand array syntax
1 parent b91644e commit e6de8b7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Classes/Command/NodeIndexCommandController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,15 @@ public function cleanupCommand()
287287
* @param array $dimensions Optional list of dimensions and their values which should be set
288288
* @return Context
289289
*/
290-
protected function createContentContext($workspaceName, array $dimensions = array())
290+
protected function createContentContext($workspaceName, array $dimensions = [])
291291
{
292-
$contextProperties = array(
292+
$contextProperties = [
293293
'workspaceName' => $workspaceName,
294294
'invisibleContentShown' => true,
295295
'inaccessibleContentShown' => true
296-
);
296+
];
297297

298-
if ($dimensions !== array()) {
298+
if ($dimensions !== []) {
299299
$contextProperties['dimensions'] = $dimensions;
300300
$contextProperties['targetDimensions'] = array_map(function ($dimensionValues) {
301301
return array_shift($dimensionValues);

0 commit comments

Comments
 (0)