@@ -188,7 +188,7 @@ |
||
| 188 | 188 | * @access public |
| 189 | 189 | * |
| 190 | 190 | * @param string $name |
| 191 | - * @param mixed $value |
|
| 191 | + * @param integer $value |
|
| 192 | 192 | * |
| 193 | 193 | * @return void |
| 194 | 194 | * @throws \Micro\Base\Exception |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * @access public |
| 242 | 242 | * |
| 243 | 243 | * @param string $listener listener name |
| 244 | - * @param mixed $event ['Object', 'method'] or callable |
|
| 244 | + * @param \Closure $event ['Object', 'method'] or callable |
|
| 245 | 245 | * @param int|null $prior priority |
| 246 | 246 | * |
| 247 | 247 | * @return bool |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | /** |
| 261 | 261 | * Send signal to dispatcher |
| 262 | 262 | * |
| 263 | - * @param $signal |
|
| 263 | + * @param string $signal |
|
| 264 | 264 | * @param $params |
| 265 | 265 | * @return mixed |
| 266 | 266 | */ |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | * |
| 343 | 343 | * @access public |
| 344 | 344 | * |
| 345 | - * @return float|null |
|
| 345 | + * @return double |
|
| 346 | 346 | */ |
| 347 | 347 | public function getStartTime() |
| 348 | 348 | { |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | if (!$this->loaded) { |
| 133 | 133 | $this->initializeContainer(); |
| 134 | 134 | |
| 135 | - $this->addListener('kernel.kill', function (array $params) { |
|
| 135 | + $this->addListener('kernel.kill', function(array $params) { |
|
| 136 | 136 | if ($params['container']->kernel->isDebug() && !$params['container']->request->isCli()) { |
| 137 | 137 | // Add timer into page |
| 138 | 138 | echo '<div class=debug_timer>', (microtime(true) - $params['container']->kernel->getStartTime()), '</div>'; |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * |
| 116 | 116 | * @access protected |
| 117 | 117 | * |
| 118 | - * @param mixed $data Any content |
|
| 118 | + * @param null|string $data Any content |
|
| 119 | 119 | * |
| 120 | 120 | * @return string |
| 121 | 121 | */ |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | $view = null; |
| 74 | 74 | if ($actionClass) { |
| 75 | 75 | /** @var \Micro\Mvc\Action $cl */ |
| 76 | - $cl = new $actionClass ($this->container); |
|
| 76 | + $cl = new $actionClass($this->container); |
|
| 77 | 77 | $view = $cl->run(); |
| 78 | 78 | } else { |
| 79 | 79 | $view = $this->{'action' . ucfirst($name)}(); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * |
| 81 | 81 | * @param string $path path to redirect |
| 82 | 82 | * |
| 83 | - * @return void|bool |
|
| 83 | + * @return null|false |
|
| 84 | 84 | */ |
| 85 | 85 | public function redirect($path) |
| 86 | 86 | { |
@@ -317,7 +317,7 @@ |
||
| 317 | 317 | * |
| 318 | 318 | * @param string $name Attribute name |
| 319 | 319 | * |
| 320 | - * @return array |
|
| 320 | + * @return boolean |
|
| 321 | 321 | */ |
| 322 | 322 | public function checkAttributeExists($name) |
| 323 | 323 | { |
@@ -370,7 +370,7 @@ |
||
| 370 | 370 | if (self::$primaryKey) { |
| 371 | 371 | $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
| 372 | 372 | } else { |
| 373 | - throw new Exception ($this->container, |
|
| 373 | + throw new Exception($this->container, |
|
| 374 | 374 | 'In table ' . static::tableName() . ' option `id` not defined/not use.' |
| 375 | 375 | ); |
| 376 | 376 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @access public |
| 25 | 25 | * |
| 26 | - * @return \Micro\Base\Command |
|
| 26 | + * @return Console |
|
| 27 | 27 | */ |
| 28 | 28 | public function getApplication() |
| 29 | 29 | { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * |
| 105 | 105 | * @access public |
| 106 | 106 | * |
| 107 | - * @param mixed $option |
|
| 107 | + * @param integer $option |
|
| 108 | 108 | * @param mixed $value |
| 109 | 109 | * |
| 110 | 110 | * @return bool |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @param int $type type id |
| 53 | 53 | * |
| 54 | - * @return mixed |
|
| 54 | + * @return string |
|
| 55 | 55 | * @static |
| 56 | 56 | */ |
| 57 | 57 | public static function getTypeLabel($type = self::TYPE_SUCCESS) |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * Get labels for types |
| 64 | 64 | * |
| 65 | 65 | * @access public |
| 66 | - * @return array |
|
| 66 | + * @return string[] |
|
| 67 | 67 | * @static |
| 68 | 68 | */ |
| 69 | 69 | public static function getTypeLabels() |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** @var ConsoleCommand $command */ |
| 68 | - $command = new $command (['container' => $this->container, 'args' => $this->args]); |
|
| 68 | + $command = new $command(['container' => $this->container, 'args' => $this->args]); |
|
| 69 | 69 | $command->execute(); |
| 70 | 70 | |
| 71 | 71 | return $command; |