@@ -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 | { |
@@ -397,7 +397,7 @@ |
||
397 | 397 | * |
398 | 398 | * @see ArrayAccess::offsetGet() |
399 | 399 | * @param string $offset The key to get from the array. |
400 | - * @return mixed The value for the offset key from the array. |
|
400 | + * @return string|boolean The value for the offset key from the array. |
|
401 | 401 | */ |
402 | 402 | public function offsetGet($offset) |
403 | 403 | { |
@@ -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); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param string $from |
44 | 44 | * @param string $to |
45 | 45 | * @param string $subject |
46 | - * @return mixed |
|
46 | + * @return string |
|
47 | 47 | * @since 1.0.0-rc1 |
48 | 48 | */ |
49 | 49 | public static function replaceFirst($from, $to, $subject) |
@@ -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) |