@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | class BaseDevCommand extends Command |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * @var string The location of the devconfig json where data is stored. |
|
| 20 | - */ |
|
| 18 | + /** |
|
| 19 | + * @var string The location of the devconfig json where data is stored. |
|
| 20 | + */ |
|
| 21 | 21 | public $configFile = '@appFolder/devconfig.json'; |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -27,17 +27,17 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function actionConfigInfo() |
| 29 | 29 | { |
| 30 | - $this->outputInfo("dev config file: " . Yii::getAlias($this->configFile)); |
|
| 30 | + $this->outputInfo("dev config file: " . Yii::getAlias($this->configFile)); |
|
| 31 | 31 | |
| 32 | - $config = $this->readConfig(); |
|
| 32 | + $config = $this->readConfig(); |
|
| 33 | 33 | |
| 34 | - if (!$config) { |
|
| 35 | - return $this->outputError("Unable to open config file."); |
|
| 36 | - } |
|
| 34 | + if (!$config) { |
|
| 35 | + return $this->outputError("Unable to open config file."); |
|
| 36 | + } |
|
| 37 | 37 | |
| 38 | - foreach ($config as $key => $value) { |
|
| 39 | - $this->output("{$key} => {$value}"); |
|
| 40 | - } |
|
| 38 | + foreach ($config as $key => $value) { |
|
| 39 | + $this->output("{$key} => {$value}"); |
|
| 40 | + } |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function actionConfigInfo() |
| 29 | 29 | { |
| 30 | - $this->outputInfo("dev config file: " . Yii::getAlias($this->configFile)); |
|
| 30 | + $this->outputInfo("dev config file: ".Yii::getAlias($this->configFile)); |
|
| 31 | 31 | |
| 32 | 32 | $config = $this->readConfig(); |
| 33 | 33 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $save = FileHelper::writeFile($this->configFile, Json::encode($content)); |
| 90 | 90 | |
| 91 | 91 | if (!$save) { |
| 92 | - return $this->outputError("Unable to find config file " . $this->configFile. ". Please create and provide Permissions."); |
|
| 92 | + return $this->outputError("Unable to find config file ".$this->configFile.". Please create and provide Permissions."); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | return $value; |