Completed
Pull Request — master (#1040)
by Carsten
04:04
created
core/console/Application.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -25,26 +25,26 @@
 block discarded – undo
25 25
 
26 26
     public function coreCommands()
27 27
     {
28
-    	return [
29
-    		// yii default commands
30
-    		'asset' => 'yii\console\controllers\AssetController',
31
-    		'cache' => 'yii\console\controllers\CacheController',
32
-    		'fixture' => 'yii\console\controllers\FixtureController',
33
-    		'help' => 'yii\console\controllers\HelpController',
34
-    		'message' => 'yii\console\controllers\MessageController',
35
-    		'serve' => 'yii\console\controllers\ServeController',
36
-    		// luya default commands
37
-    		'migrate' => 'luya\console\commands\MigrateController',
38
-	        'crud' => 'luya\console\commands\CrudController',
39
-	        'module' => 'luya\console\commands\ModuleController',
40
-	        'command' => 'luya\console\commands\CommandController',
41
-	        'import' => 'luya\console\commands\ImportController',
42
-	        'setup' => 'luya\console\commands\SetupController',
43
-	        'health' => 'luya\console\commands\HealthController',
44
-	        'block' => 'luya\console\commands\BlockController',
45
-	        'storage' => 'luya\console\commands\StorageController',
46
-	        'aw' => 'luya\console\commands\ActiveWindowController',
47
-    	];
28
+        return [
29
+            // yii default commands
30
+            'asset' => 'yii\console\controllers\AssetController',
31
+            'cache' => 'yii\console\controllers\CacheController',
32
+            'fixture' => 'yii\console\controllers\FixtureController',
33
+            'help' => 'yii\console\controllers\HelpController',
34
+            'message' => 'yii\console\controllers\MessageController',
35
+            'serve' => 'yii\console\controllers\ServeController',
36
+            // luya default commands
37
+            'migrate' => 'luya\console\commands\MigrateController',
38
+            'crud' => 'luya\console\commands\CrudController',
39
+            'module' => 'luya\console\commands\ModuleController',
40
+            'command' => 'luya\console\commands\CommandController',
41
+            'import' => 'luya\console\commands\ImportController',
42
+            'setup' => 'luya\console\commands\SetupController',
43
+            'health' => 'luya\console\commands\HealthController',
44
+            'block' => 'luya\console\commands\BlockController',
45
+            'storage' => 'luya\console\commands\StorageController',
46
+            'aw' => 'luya\console\commands\ActiveWindowController',
47
+        ];
48 48
     }
49 49
     
50 50
     /**
Please login to merge, or discard this patch.
core/base/Boot.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function setConfigArray(array $config)
93 93
     {
94
-    	$this->_configArray = $config;
94
+        $this->_configArray = $config;
95 95
     }
96 96
     
97 97
     /**
@@ -103,24 +103,24 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getConfigArray()
105 105
     {
106
-    	if ($this->_configArray === null) {
107
-	        if (!file_exists($this->configFile)) {
108
-	            throw new Exception("Unable to load the config file '".$this->configFile."'.");
109
-	        }
106
+        if ($this->_configArray === null) {
107
+            if (!file_exists($this->configFile)) {
108
+                throw new Exception("Unable to load the config file '".$this->configFile."'.");
109
+            }
110 110
 	
111
-	        $config = require $this->configFile;
111
+            $config = require $this->configFile;
112 112
 	
113
-	        if (!is_array($config)) {
114
-	            throw new Exception("config file '".$this->configFile."' found but no array returning.");
115
-	        }
113
+            if (!is_array($config)) {
114
+                throw new Exception("config file '".$this->configFile."' found but no array returning.");
115
+            }
116 116
 	
117
-	        // adding default configuration timezone if not set
118
-	        if (!array_key_exists('timezone', $config)) {
119
-	            $config['timezone'] = 'Europe/Berlin';
120
-	        }
117
+            // adding default configuration timezone if not set
118
+            if (!array_key_exists('timezone', $config)) {
119
+                $config['timezone'] = 'Europe/Berlin';
120
+            }
121 121
 	     
122
-	        $this->_configArray = $config;
123
-    	}
122
+            $this->_configArray = $config;
123
+        }
124 124
 
125 125
         return $this->_configArray;
126 126
     }
Please login to merge, or discard this patch.