@@ -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 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * Helper method to stop the console command with an error message, outputError returns exit code 1. |
| 48 | 48 | * |
| 49 | 49 | * @param string $message The message which should be displayed. |
| 50 | - * @return number Exit code 1 |
|
| 50 | + * @return integer Exit code 1 |
|
| 51 | 51 | */ |
| 52 | 52 | public function outputError($message) |
| 53 | 53 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * Helper method to stop the console command with a success message, outputSuccess returns exit code 0. |
| 61 | 61 | * |
| 62 | 62 | * @param string $message The message which sould be displayed |
| 63 | - * @return number Exit code 0 |
|
| 63 | + * @return integer Exit code 0 |
|
| 64 | 64 | */ |
| 65 | 65 | public function outputSuccess($message) |
| 66 | 66 | { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * but does have a different output color (blue). outputInfo returns exit code 0. |
| 75 | 75 | * |
| 76 | 76 | * @param string $message The message which sould be displayed. |
| 77 | - * @return number Exit code 0 |
|
| 77 | + * @return integer Exit code 0 |
|
| 78 | 78 | * @since 1.0.0-beta5 |
| 79 | 79 | */ |
| 80 | 80 | public function outputInfo($message) |
@@ -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 . ';'); |