@@ -41,7 +41,7 @@ abstract class Horde_Db_Adapter_Abstract_Schema
4141 /**
4242 * @var array
4343 */
44- protected $ _adapterMethods = array () ;
44+ protected $ _adapterMethods = [] ;
4545
4646
4747 /*##########################################################################
@@ -52,7 +52,7 @@ abstract class Horde_Db_Adapter_Abstract_Schema
5252 * @param Horde_Db_Adapter_Abstract $adapter
5353 * @param array $config
5454 */
55- public function __construct ($ adapter , $ config = array () )
55+ public function __construct ($ adapter , $ config = [] )
5656 {
5757 $ this ->_adapter = $ adapter ;
5858 $ this ->_adapterMethods = array_flip (get_class_methods ($ adapter ));
@@ -75,7 +75,7 @@ public function __construct($adapter, $config = array())
7575 public function __call ($ method , $ args )
7676 {
7777 if (isset ($ this ->_adapterMethods [$ method ])) {
78- return call_user_func_array (array ( $ this ->_adapter , $ method) , $ args );
78+ return call_user_func_array ([ $ this ->_adapter , $ method] , $ args );
7979 }
8080
8181 throw new BadMethodCallException ('Call to undeclared method " ' .$ method .'" ' );
@@ -96,7 +96,7 @@ public function __call($method, $args)
9696 */
9797 public function quote ($ value , $ column =null )
9898 {
99- if (is_object ($ value ) && is_callable (array ( $ value , 'quotedId ' ) )) {
99+ if (is_object ($ value ) && is_callable ([ $ value , 'quotedId ' ] )) {
100100 return $ value ->quotedId ();
101101 }
102102
@@ -144,7 +144,7 @@ public function quote($value, $column=null)
144144 */
145145 public function quoteString ($ string )
146146 {
147- return "' " .str_replace (array ( '\\' , '\'' ), array ( '\\\\' , '\\\'' ) , $ string )."' " ;
147+ return "' " .str_replace ([ '\\' , '\'' ], [ '\\\\' , '\\\'' ] , $ string )."' " ;
148148 }
149149
150150 /**
@@ -213,7 +213,7 @@ public function quotedStringPrefix()
213213 */
214214 public function nativeDatabaseTypes ()
215215 {
216- return array () ;
216+ return [] ;
217217 }
218218
219219 /**
@@ -328,7 +328,7 @@ abstract public function columns($tableName, $name=null);
328328 * @param string $name
329329 * @param array $options
330330 */
331- public function createTable ($ name , $ options =array () )
331+ public function createTable ($ name , $ options =[] )
332332 {
333333 $ pk = isset ($ options ['primaryKey ' ]) &&
334334 $ options ['primaryKey ' ] === false ? false : 'id ' ;
@@ -346,7 +346,7 @@ public function createTable($name, $options=array())
346346 * @param string $name
347347 * @param array $options
348348 */
349- public function endTable ($ name , $ options =array () )
349+ public function endTable ($ name , $ options =[] )
350350 {
351351 if ($ name instanceof Horde_Db_Adapter_Abstract_TableDefinition) {
352352 $ tableDefinition = $ name ;
@@ -399,7 +399,7 @@ public function dropTable($name)
399399 * @param string $type
400400 * @param array $options
401401 */
402- public function addColumn ($ tableName , $ columnName , $ type , $ options =array () )
402+ public function addColumn ($ tableName , $ columnName , $ type , $ options =[] )
403403 {
404404 $ this ->_clearTableCache ($ tableName );
405405
@@ -442,7 +442,7 @@ public function removeColumn($tableName, $columnName)
442442 * @param string $type
443443 * @param array $options
444444 */
445- abstract public function changeColumn ($ tableName , $ columnName , $ type , $ options =array () );
445+ abstract public function changeColumn ($ tableName , $ columnName , $ type , $ options =[] );
446446
447447 /**
448448 * Sets a new default value for a column. If you want to set the default
@@ -503,12 +503,12 @@ abstract public function renameColumn($tableName, $columnName, $newColumnName);
503503 * @param string $columnName
504504 * @param array $options
505505 */
506- public function addIndex ($ tableName , $ columnName , $ options =array () )
506+ public function addIndex ($ tableName , $ columnName , $ options =[] )
507507 {
508508 $ this ->_clearTableCache ($ tableName );
509509
510510 $ columnNames = (array )($ columnName );
511- $ indexName = $ this ->indexName ($ tableName , array ( 'column ' => $ columnNames) );
511+ $ indexName = $ this ->indexName ($ tableName , [ 'column ' => $ columnNames] );
512512
513513 $ indexType = !empty ($ options ['unique ' ]) ? "UNIQUE " : null ;
514514 $ indexName = !empty ($ options ['name ' ]) ? $ options ['name ' ] : $ indexName ;
@@ -539,7 +539,7 @@ public function addIndex($tableName, $columnName, $options=array())
539539 * @param string $tableName
540540 * @param array $options
541541 */
542- public function removeIndex ($ tableName , $ options =array () )
542+ public function removeIndex ($ tableName , $ options =[] )
543543 {
544544 $ this ->_clearTableCache ($ tableName );
545545
@@ -554,10 +554,10 @@ public function removeIndex($tableName, $options=array())
554554 * @param string $tableName
555555 * @param array $options
556556 */
557- public function indexName ($ tableName , $ options =array () )
557+ public function indexName ($ tableName , $ options =[] )
558558 {
559559 if (!is_array ($ options )) {
560- $ options = array ( 'column ' => $ options) ;
560+ $ options = [ 'column ' => $ options] ;
561561 }
562562
563563 if (isset ($ options ['column ' ])) {
0 commit comments