Convert all array() syntax to []
[lhc/web/wiklou.git] / maintenance / getConfiguration.php
index b1140ec..6bc9a6a 100644 (file)
@@ -34,18 +34,18 @@ class GetConfiguration extends Maintenance {
 
        protected $regex = null;
 
-       protected $settings_list = array();
+       protected $settings_list = [];
 
        /**
         * List of format output internally supported.
         * Each item MUST be lower case.
         */
-       protected static $outFormats = array(
+       protected static $outFormats = [
                'json',
                'php',
                'serialize',
                'vardump',
-       );
+       ];
 
        public function __construct() {
                parent::__construct();
@@ -112,7 +112,7 @@ class GetConfiguration extends Maintenance {
 
        public function execute() {
                // Settings we will display
-               $res = array();
+               $res = [];
 
                # Sane default: dump any wg / wmg variable
                if ( !$this->regex && !$this->getOption( 'settings' ) ) {
@@ -121,7 +121,7 @@ class GetConfiguration extends Maintenance {
 
                # Filter out globals based on the regex
                if ( $this->regex ) {
-                       $res = array();
+                       $res = [];
                        foreach ( $GLOBALS as $name => $value ) {
                                if ( preg_match( $this->regex, $name ) ) {
                                        $res[$name] = $value;