Completed
Push — master ( 739744...ed27c8 )
by Basil
02:40
created
dev/BaseDevCommand.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.