Skip to content

Commit 0c6b050

Browse files
committed
Style: Use the short array syntax
1 parent 8179b82 commit 0c6b050

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/Header/HeaderGenerator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class HeaderGenerator {
88

99
use traitCodeParser;
1010

11-
public $aItems = array();
12-
public $aOptions = array();
11+
public $aItems = [];
12+
public $aOptions = [];
1313

1414
/**
1515
* HeaderGenerator constructor.
@@ -111,12 +111,12 @@ private function ___generateHeaderComment( $sClassName ) {
111111

112112
$_oRC = new \ReflectionClass( $sClassName );
113113
$_aConstants = $_oRC->getConstants();
114-
$_aConstants = array_change_key_case( $_aConstants, CASE_UPPER ) + array(
114+
$_aConstants = array_change_key_case( $_aConstants, CASE_UPPER ) + [
115115
'NAME' => '', 'VERSION' => '', 'DESCRIPTION' => '',
116116
'URI' => '', 'AUTHOR' => '', 'AUTHOR_URI' => '',
117117
'COPYRIGHT' => '', 'LICENSE' => '', 'CONTRIBUTORS' => '',
118-
);
119-
$_aOutputs = array();
118+
];
119+
$_aOutputs = [];
120120
$_aOutputs[] = '/**';
121121
$_aOutputs[] = ( $_aConstants[ 'NAME' ] ? " " . $_aConstants[ 'NAME' ] . ' ' : '' )
122122
. ( $_aConstants[ 'VERSION' ] ? 'v' . $_aConstants[ 'VERSION' ] . ' ' : '' )

0 commit comments

Comments
 (0)