@@ -14,13 +14,13 @@ class AlterTable implements IStatement
1414 private $ tableName ;
1515
1616 /** @var IStatement[] */
17- private $ statements = array () ;
17+ private $ statements = [] ;
1818
1919 /** @var string|NULL */
2020 private $ comment ;
2121
2222 /** @var array [name => value] */
23- private $ options = array () ;
23+ private $ options = [] ;
2424
2525
2626 /**
@@ -39,7 +39,7 @@ public function __construct($tableName)
3939 * @param array [name => value]
4040 * @return AddColumn
4141 */
42- public function addColumn ($ name , $ type , array $ parameters = NULL , array $ options = array () )
42+ public function addColumn ($ name , $ type , array $ parameters = NULL , array $ options = [] )
4343 {
4444 return $ this ->statements [] = new AddColumn ($ name , $ type , $ parameters , $ options );
4545 }
@@ -62,7 +62,7 @@ public function dropColumn($column)
6262 * @param array [name => value]
6363 * @return ModifyColumn
6464 */
65- public function modifyColumn ($ name , $ type , array $ parameters = NULL , array $ options = array () )
65+ public function modifyColumn ($ name , $ type , array $ parameters = NULL , array $ options = [] )
6666 {
6767 return $ this ->statements [] = new ModifyColumn ($ name , $ type , $ parameters , $ options );
6868 }
@@ -96,7 +96,7 @@ public function dropIndex($index)
9696 * @param string[]|string
9797 * @return AddForeignKey
9898 */
99- public function addForeignKey ($ name , $ columns = array () , $ targetTable , $ targetColumns = array () )
99+ public function addForeignKey ($ name , $ columns = [] , $ targetTable , $ targetColumns = [] )
100100 {
101101 return $ this ->statements [] = new AddForeignKey ($ name , $ columns , $ targetTable , $ targetColumns );
102102 }
0 commit comments