@@ -185,7 +185,7 @@ |
||
185 | 185 | * @access public |
186 | 186 | * |
187 | 187 | * @param string $name |
188 | - * @param mixed $value |
|
188 | + * @param integer $value |
|
189 | 189 | * |
190 | 190 | * @return void |
191 | 191 | * @throws \Micro\base\Exception |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * |
97 | 97 | * @access protected |
98 | 98 | * |
99 | - * @param mixed $data Any content |
|
99 | + * @param null|string $data Any content |
|
100 | 100 | * |
101 | 101 | * @return string |
102 | 102 | */ |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $view = null; |
55 | 55 | if ($actionClass) { |
56 | 56 | /** @var \Micro\mvc\Action $cl */ |
57 | - $cl = new $actionClass ($this->container); |
|
57 | + $cl = new $actionClass($this->container); |
|
58 | 58 | $view = $cl->run(); |
59 | 59 | } else { |
60 | 60 | $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 | { |
@@ -319,7 +319,7 @@ |
||
319 | 319 | * |
320 | 320 | * @param string $name Attribute name |
321 | 321 | * |
322 | - * @return array |
|
322 | + * @return boolean |
|
323 | 323 | */ |
324 | 324 | public function checkAttributeExists($name) |
325 | 325 | { |
@@ -372,7 +372,7 @@ |
||
372 | 372 | if (self::$primaryKey) { |
373 | 373 | $where .= '`' . self::$primaryKey . '` = :' . self::$primaryKey; |
374 | 374 | } else { |
375 | - throw new Exception ($this->container, |
|
375 | + throw new Exception($this->container, |
|
376 | 376 | 'In table ' . static::tableName() . ' option `id` not defined/not use.' |
377 | 377 | ); |
378 | 378 | } |
@@ -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 \Micro\cli\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; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | throw new Exception('Controller ' . $cls . ' not found'); |
56 | 56 | } |
57 | 57 | |
58 | - return new $cls ($this->container, $this->getModules()); |
|
58 | + return new $cls($this->container, $this->getModules()); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -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 | { |