@@ -42,6 +42,11 @@ |
||
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string|boolean $module |
|
| 47 | + * |
|
| 48 | + * @return string |
|
| 49 | + */ |
|
| 45 | 50 | private function getModuleMigrationDirectorie($module) |
| 46 | 51 | { |
| 47 | 52 | if (!array_key_exists($module, $this->moduleMigrationDirectories)) { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * @param string $search Search string to look for. |
| 48 | 48 | * @param string $replace Replacement value for the first found occurrence. |
| 49 | 49 | * @param string $subject The string you want to look up to replace the first element. |
| 50 | - * @return mixed Replaced string |
|
| 50 | + * @return string Replaced string |
|
| 51 | 51 | * @since 1.0.0-rc1 |
| 52 | 52 | */ |
| 53 | 53 | public static function replaceFirst($search, $replace, $subject) |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Get the $moduleName without admin suffix (if any). |
| 47 | 47 | * |
| 48 | - * @return mixed Return the module name without admin suffix. |
|
| 48 | + * @return string Return the module name without admin suffix. |
|
| 49 | 49 | */ |
| 50 | 50 | public function getModuleNameWithoutAdminSuffix() |
| 51 | 51 | { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use yii\helpers\Console; |
| 7 | 7 | use yii\helpers\Inflector; |
| 8 | 8 | use yii\db\TableSchema; |
| 9 | -use luya\Boot; |
|
| 10 | 9 | use luya\helpers\FileHelper; |
| 11 | 10 | use luya\admin\ngrest\base\NgRestModelInterface; |
| 12 | 11 | use yii\console\Exception; |
@@ -146,6 +146,11 @@ discard block |
||
| 146 | 146 | ]; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string $type |
|
| 151 | + * @param string $varName |
|
| 152 | + * @param string $func |
|
| 153 | + */ |
|
| 149 | 154 | private function getExtraVarDef($type, $varName, $func) |
| 150 | 155 | { |
| 151 | 156 | $info = [ |
@@ -173,6 +178,9 @@ discard block |
||
| 173 | 178 | return false; |
| 174 | 179 | } |
| 175 | 180 | |
| 181 | + /** |
|
| 182 | + * @param string $type |
|
| 183 | + */ |
|
| 176 | 184 | private function getVariableTypeOption($type) |
| 177 | 185 | { |
| 178 | 186 | $types = $this->getVariableTypesOptions(); |
@@ -180,11 +188,17 @@ discard block |
||
| 180 | 188 | return $types[$type]; |
| 181 | 189 | } |
| 182 | 190 | |
| 191 | + /** |
|
| 192 | + * @param string $type |
|
| 193 | + */ |
|
| 183 | 194 | private function hasVariableTypeOption($type) |
| 184 | 195 | { |
| 185 | 196 | return array_key_exists($type, $this->getVariableTypesOptions()); |
| 186 | 197 | } |
| 187 | 198 | |
| 199 | + /** |
|
| 200 | + * @param string $prefix |
|
| 201 | + */ |
|
| 188 | 202 | private function placeholderCreator($prefix) |
| 189 | 203 | { |
| 190 | 204 | $this->output(PHP_EOL.'-> Create new '.$prefix, Console::FG_YELLOW); |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Humanize the class name |
| 19 | 19 | * |
| 20 | + * @param string $name |
|
| 20 | 21 | * @return string The humanized name. |
| 21 | 22 | */ |
| 22 | 23 | public function humanizeName($name) |
@@ -398,7 +398,7 @@ |
||
| 398 | 398 | * |
| 399 | 399 | * @see ArrayAccess::offsetGet() |
| 400 | 400 | * @param string $offset The key to get from the array. |
| 401 | - * @return mixed The value for the offset key from the array. |
|
| 401 | + * @return string|boolean The value for the offset key from the array. |
|
| 402 | 402 | */ |
| 403 | 403 | public function offsetGet($offset) |
| 404 | 404 | { |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * Remove the base url from a route |
| 188 | 188 | * |
| 189 | 189 | * @param string $route The route where the baseUrl should be removed from. |
| 190 | - * @return mixed |
|
| 190 | + * @return string |
|
| 191 | 191 | */ |
| 192 | 192 | public function removeBaseUrl($route) |
| 193 | 193 | { |