@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Display config data and location. |
25 | 25 | * |
26 | - * @return boolean|void |
|
26 | + * @return integer|null |
|
27 | 27 | */ |
28 | 28 | public function actionConfigInfo() |
29 | 29 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * Save a value in the config for a given key. |
74 | 74 | * |
75 | 75 | * @param string $key |
76 | - * @param mixed $value |
|
76 | + * @param string $value |
|
77 | 77 | * @return mixed |
78 | 78 | */ |
79 | 79 | protected function saveConfig($key, $value) |
@@ -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; |