Completed
Push — master ( b4a6ad...e2bab1 )
by Andrii
13:50
created
src/base/Application.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,6 @@
 block discarded – undo
68 68
 
69 69
     /**
70 70
      * Load extra config files.
71
-     * @param array $config
72 71
      * @return void
73 72
      */
74 73
     public function loadExtraVendor($dir)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Exception;
15 15
 use Yii;
16
-use yii\base\InvalidConfigException;
17 16
 use yii\base\InvalidParamException;
18 17
 use yii\console\Exception as ConsoleException;
19 18
 use yii\base\Module;
Please login to merge, or discard this patch.
src/components/Config.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
         return false;
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $id
77
+     */
75 78
     public function getGoal($id)
76 79
     {
77 80
         return Yii::$app->createControllerById($id);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,7 @@
 block discarded – undo
12 12
 namespace hidev\components;
13 13
 
14 14
 use hidev\base\File;
15
-use hidev\helpers\Helper;
16 15
 use Yii;
17
-use yii\base\BootstrapInterface;
18
-use yii\base\InvalidParamException;
19 16
 use yii\helpers\ArrayHelper;
20 17
 
21 18
 /**
Please login to merge, or discard this patch.
src/controllers/AbstractController.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * Runs list of actions.
140 140
      * TODO: think to redo with runRequests
141 141
      * @param null|string|array $actions
142
-     * @return int|Response exit code
142
+     * @return null|integer exit code
143 143
      */
144 144
     public function runActions($actions)
145 145
     {
@@ -199,6 +199,9 @@  discard block
 block discarded – undo
199 199
         return Yii::$app->get('binaries')->passthru($name, $args);
200 200
     }
201 201
 
202
+    /**
203
+     * @param string $id
204
+     */
202 205
     public function takeGoal($id)
203 206
     {
204 207
         return Yii::$app->get('config')->getGoal($id);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,11 +96,11 @@
 block discarded – undo
96 96
         if (!$tasks) {
97 97
             return [];
98 98
         } elseif (!is_array($tasks)) {
99
-            $tasks = [(string)$tasks => 1];
99
+            $tasks = [(string) $tasks => 1];
100 100
         }
101 101
         $res = [];
102 102
         foreach ($tasks as $dep => $enabled) {
103
-            $res[(string)(is_int($dep) ? $enabled : $dep)] = (bool)(is_int($dep) ? 1 : $enabled);
103
+            $res[(string) (is_int($dep) ? $enabled : $dep)] = (bool) (is_int($dep) ? 1 : $enabled);
104 104
         }
105 105
 
106 106
         return $res;
Please login to merge, or discard this patch.
src/controllers/CommonController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace hidev\controllers;
13 13
 
14 14
 use Yii;
15
-use hidev\helpers\Helper;
16 15
 
17 16
 /**
18 17
  * Common controller.
Please login to merge, or discard this patch.
src/controllers/StartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     protected function findDir()
79 79
     {
80 80
         $configDir = '.hidev';
81
-        for ($i = 0;$i < 9;++$i) {
81
+        for ($i = 0; $i < 9; ++$i) {
82 82
             if (is_dir($configDir)) {
83 83
                 return getcwd();
84 84
             }
Please login to merge, or discard this patch.