@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * Run the application based on the Sapi Name. |
| 102 | 102 | * |
| 103 | - * @return luya\web\Application|luya\cli\Application Application objected based on the sapi name. |
|
| 103 | + * @return null|integer Application objected based on the sapi name. |
|
| 104 | 104 | */ |
| 105 | 105 | public function run() |
| 106 | 106 | { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Run Web-Application based on the provided config file. |
| 135 | 135 | * |
| 136 | - * @return string|void Returns the Yii Application run() method if mock is disabled. Otherwise returns void |
|
| 136 | + * @return integer|null Returns the Yii Application run() method if mock is disabled. Otherwise returns void |
|
| 137 | 137 | */ |
| 138 | 138 | public function applicationWeb() |
| 139 | 139 | { |
@@ -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)) { |
@@ -9,6 +9,9 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | class SetupController extends \luya\console\Command |
| 11 | 11 | { |
| 12 | + /** |
|
| 13 | + * @param string $table |
|
| 14 | + */ |
|
| 12 | 15 | private function insert($table, $fields) |
| 13 | 16 | { |
| 14 | 17 | return Yii::$app->db->createCommand()->insert($table, $fields)->execute(); |
@@ -84,8 +87,6 @@ discard block |
||
| 84 | 87 | * @todo use options instead, override options() |
| 85 | 88 | * @todo see if admin is availoable |
| 86 | 89 | * |
| 87 | - * @param string $email |
|
| 88 | - * @param string $password |
|
| 89 | 90 | */ |
| 90 | 91 | public function actionIndex() |
| 91 | 92 | { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * |
| 38 | 38 | * @param string $route |
| 39 | 39 | * @param array $params |
| 40 | - * @param boolean $sheme Whether to return static url or not |
|
| 40 | + * @param boolean $scheme Whether to return static url or not |
|
| 41 | 41 | * @todo we have to remove this method as it provides no additinal functions to the yii\helpers\url to method |
| 42 | 42 | */ |
| 43 | 43 | public static function toManager($route, array $params = [], $scheme = false) |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | /** |
| 235 | 235 | * Return a path like string with all composition with trailing slash e.g. us/e. |
| 236 | 236 | * |
| 237 | - * @return void|string |
|
| 237 | + * @return string |
|
| 238 | 238 | */ |
| 239 | 239 | public function getFull() |
| 240 | 240 | { |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | * Define a last of importer class with an array or run code directily with the import() method. |
| 199 | 199 | * |
| 200 | 200 | * @param ImportControllerInterface $importer |
| 201 | - * @return boolean|array |
|
| 201 | + * @return boolean |
|
| 202 | 202 | */ |
| 203 | 203 | public function import(ImportControllerInterface $importer) |
| 204 | 204 | { |
@@ -71,7 +71,6 @@ |
||
| 71 | 71 | * $this->addLog('block', 'new block <ID> have been found and added to database'); |
| 72 | 72 | * ``` |
| 73 | 73 | * |
| 74 | - * @param string $section |
|
| 75 | 74 | * @param string $value |
| 76 | 75 | * @todo trigger deprecated section call |
| 77 | 76 | */ |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $tests = [ |
| 3 | - "in_array('mod_rewrite', apache_get_modules());", |
|
| 4 | - "ini_get('short_open_tag');", |
|
| 5 | - "ini_get('error_reporting');", |
|
| 6 | - "phpversion()", |
|
| 7 | - "php_ini_loaded_file()", |
|
| 3 | + "in_array('mod_rewrite', apache_get_modules());", |
|
| 4 | + "ini_get('short_open_tag');", |
|
| 5 | + "ini_get('error_reporting');", |
|
| 6 | + "phpversion()", |
|
| 7 | + "php_ini_loaded_file()", |
|
| 8 | 8 | ]; |
| 9 | 9 | foreach ($tests as $i => $test) { |
| 10 | 10 | $result = eval('return ' . $test . ';'); |
@@ -61,6 +61,11 @@ discard block |
||
| 61 | 61 | ]; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | + /** |
|
| 65 | + * @param string $type |
|
| 66 | + * @param string $varName |
|
| 67 | + * @param string $func |
|
| 68 | + */ |
|
| 64 | 69 | private function getExtraVarDef($type, $varName, $func) |
| 65 | 70 | { |
| 66 | 71 | $info = [ |
@@ -77,6 +82,9 @@ discard block |
||
| 77 | 82 | return false; |
| 78 | 83 | } |
| 79 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $type |
|
| 87 | + */ |
|
| 80 | 88 | private function getVariableTypeOption($type) |
| 81 | 89 | { |
| 82 | 90 | $types = $this->getVariableTypesOptions(); |
@@ -84,6 +92,9 @@ discard block |
||
| 84 | 92 | return $types[$type]; |
| 85 | 93 | } |
| 86 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $type |
|
| 97 | + */ |
|
| 87 | 98 | private function hasVariableTypeOption($type) |
| 88 | 99 | { |
| 89 | 100 | return array_key_exists($type, $this->getVariableTypesOptions()); |
@@ -92,7 +103,7 @@ discard block |
||
| 92 | 103 | /** |
| 93 | 104 | * Wizzard to create a new CMS block. |
| 94 | 105 | * |
| 95 | - * @return number |
|
| 106 | + * @return integer |
|
| 96 | 107 | */ |
| 97 | 108 | public function actionCreate() |
| 98 | 109 | { |
@@ -302,6 +313,9 @@ discard block |
||
| 302 | 313 | return $this->outputError("Error while creating file '$file'"); |
| 303 | 314 | } |
| 304 | 315 | |
| 316 | + /** |
|
| 317 | + * @param string $prefix |
|
| 318 | + */ |
|
| 305 | 319 | private function placeholderCreator($prefix) |
| 306 | 320 | { |
| 307 | 321 | $this->output(PHP_EOL.'-> Create new '.$prefix, Console::FG_YELLOW); |
@@ -320,8 +334,8 @@ discard block |
||
| 320 | 334 | |
| 321 | 335 | /** |
| 322 | 336 | * |
| 323 | - * @param unknown $prefix |
|
| 324 | - * @param string $type 'var', 'cfg' |
|
| 337 | + * @param string $prefix |
|
| 338 | + * @param string $typeCast |
|
| 325 | 339 | * @return multitype:string Ambigous <string, array> |
| 326 | 340 | */ |
| 327 | 341 | private function varCreator($prefix, $typeCast) |