@@ -104,7 +104,6 @@ discard block |
||
| 104 | 104 | * - router params, |
| 105 | 105 | * - then router defauls. |
| 106 | 106 | * |
| 107 | - * @param string $route |
|
| 108 | 107 | * @param array $rules |
| 109 | 108 | * @param array $params |
| 110 | 109 | * @return void |
@@ -301,7 +300,7 @@ discard block |
||
| 301 | 300 | * Checks a specified router param exists. |
| 302 | 301 | * |
| 303 | 302 | * @param string $key A key to check |
| 304 | - * @return bolean |
|
| 303 | + * @return boolean |
|
| 305 | 304 | */ |
| 306 | 305 | public function hasParam($key) |
| 307 | 306 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param string $path The path name to match against. |
| 26 | 26 | * @param mixed $to Callback that returns the response when matched. |
| 27 | 27 | * @see Server::proxy |
| 28 | - * @return Controller Provides a fluent interface. |
|
| 28 | + * @return Entity Provides a fluent interface. |
|
| 29 | 29 | */ |
| 30 | 30 | public function onCreate($path, $to) |
| 31 | 31 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param string $path The path name to match against. |
| 39 | 39 | * @param mixed $to Callback that returns the response when matched. |
| 40 | 40 | * @see Server::proxy |
| 41 | - * @return Controller Provides a fluent interface. |
|
| 41 | + * @return Entity Provides a fluent interface. |
|
| 42 | 42 | */ |
| 43 | 43 | public function onRead($path, $to) |
| 44 | 44 | { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @param string $path The path name to match against. |
| 52 | 52 | * @param mixed $to Callback that returns the response when matched. |
| 53 | 53 | * @see Server::proxy |
| 54 | - * @return Controller Provides a fluent interface. |
|
| 54 | + * @return Entity Provides a fluent interface. |
|
| 55 | 55 | */ |
| 56 | 56 | public function onUpdate($path, $to) |
| 57 | 57 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @param string $path The path name to match against. |
| 65 | 65 | * @param mixed $to Callback that returns the response when matched. |
| 66 | 66 | * @see Server::proxy |
| 67 | - * @return Controller Provides a fluent interface. |
|
| 67 | + * @return Entity Provides a fluent interface. |
|
| 68 | 68 | */ |
| 69 | 69 | public function onModify($path, $to) |
| 70 | 70 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param string $path The path name to match against. |
| 78 | 78 | * @param mixed $to Callback that returns the response when matched. |
| 79 | 79 | * @see Server::proxy |
| 80 | - * @return Controller Provides a fluent interface. |
|
| 80 | + * @return Entity Provides a fluent interface. |
|
| 81 | 81 | */ |
| 82 | 82 | public function onDelete($path, $to) |
| 83 | 83 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @param string $path The path name to match against. |
| 91 | 91 | * @param mixed $to Callback that returns the response when matched. |
| 92 | 92 | * @see Server::proxy |
| 93 | - * @return Controller Provides a fluent interface. |
|
| 93 | + * @return Entity Provides a fluent interface. |
|
| 94 | 94 | */ |
| 95 | 95 | public function onHelp($path, $to) |
| 96 | 96 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * @param string $path The path name to match against. |
| 104 | 104 | * @param mixed $to Callback that returns the response when matched. |
| 105 | 105 | * @see Server::proxy |
| 106 | - * @return Controller Provides a fluent interface. |
|
| 106 | + * @return Entity Provides a fluent interface. |
|
| 107 | 107 | */ |
| 108 | 108 | public function onTest($path, $to) |
| 109 | 109 | { |
@@ -116,9 +116,9 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param string $method The HTTP method to match against. |
| 118 | 118 | * @param string $path The path name to match against. |
| 119 | - * @param mixed $to Callback that returns the response |
|
| 119 | + * @param \Closure $to Callback that returns the response |
|
| 120 | 120 | * when matched. |
| 121 | - * @return Controller |
|
| 121 | + * @return Entity |
|
| 122 | 122 | */ |
| 123 | 123 | protected function proxy($method, $path, \Closure $to) |
| 124 | 124 | { |
@@ -139,7 +139,6 @@ discard block |
||
| 139 | 139 | /** |
| 140 | 140 | * TODO: Test Read from a group. |
| 141 | 141 | * |
| 142 | - * @param array $opts Options are: |
|
| 143 | 142 | * @return string |
| 144 | 143 | * @codeCoverageIgnore |
| 145 | 144 | */ |
@@ -18,8 +18,7 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * Returns the specified service -- or all if unspecified. |
| 20 | 20 | * |
| 21 | - * @param string $key=null The service key to retrieve. |
|
| 22 | - * @param array|null $args=null An array of argument to pass to the service. |
|
| 21 | + * @param string $key |
|
| 23 | 22 | * @return mixed |
| 24 | 23 | */ |
| 25 | 24 | public static function get($key=null, $args=null) |
@@ -55,8 +54,7 @@ discard block |
||
| 55 | 54 | /** |
| 56 | 55 | * Checks wether the named service exists or not. |
| 57 | 56 | * |
| 58 | - * @param string $name The service name to look for. |
|
| 59 | - * @return boolean |
|
| 57 | + * @return boolean|null |
|
| 60 | 58 | */ |
| 61 | 59 | public static function debug($key=null) |
| 62 | 60 | { |
@@ -108,7 +108,6 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Check if the specified user data is set. |
| 110 | 110 | * |
| 111 | - * @param string $group |
|
| 112 | 111 | * @return boolean |
| 113 | 112 | */ |
| 114 | 113 | public function hasTrustedIps() |
@@ -119,7 +118,6 @@ discard block |
||
| 119 | 118 | /** |
| 120 | 119 | * Adds arbitrary session data. |
| 121 | 120 | * |
| 122 | - * @param string $group |
|
| 123 | 121 | * @return void |
| 124 | 122 | */ |
| 125 | 123 | public function addData($key, $value) |
@@ -130,7 +128,6 @@ discard block |
||
| 130 | 128 | /** |
| 131 | 129 | * Checks wether the specified key is set in the session dataset. |
| 132 | 130 | * |
| 133 | - * @param string $group |
|
| 134 | 131 | * @return boolean |
| 135 | 132 | */ |
| 136 | 133 | public function hasData($key) |
@@ -69,6 +69,9 @@ |
||
| 69 | 69 | return $this; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $key |
|
| 74 | + */ |
|
| 72 | 75 | public function get($key, $htmlize=true) |
| 73 | 76 | { |
| 74 | 77 | $v = isset($this->{$key}) ? (array) $this->{$key} : array(); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Returns the man index/section string. |
| 91 | 91 | * |
| 92 | - * @return integer |
|
| 92 | + * @return string |
|
| 93 | 93 | */ |
| 94 | 94 | public function getManTocSection() |
| 95 | 95 | { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * _def - view helper. |
| 111 | 111 | * |
| 112 | - * @return string |
|
| 112 | + * @return \Closure |
|
| 113 | 113 | */ |
| 114 | 114 | public function _def() |
| 115 | 115 | { |
@@ -191,6 +191,9 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | /* ---- generic helpers --- */ |
| 193 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $mix |
|
| 196 | + */ |
|
| 194 | 197 | public function hasMany($mix) |
| 195 | 198 | { |
| 196 | 199 | if (is_string($mix) && isset($this->{$mix})) { |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Apix\View\ViewModel; |
| 14 | 14 | |
| 15 | -use Apix\View\ViewModel, |
|
| 16 | - Apix\Response; |
|
| 15 | +use Apix\View\ViewModel; |
|
| 16 | +use Apix\Response; |
|
| 17 | 17 | |
| 18 | 18 | class Error extends Common |
| 19 | 19 | { |