@@ -38,7 +38,6 @@ |
||
38 | 38 | /** |
39 | 39 | * Array to XMLWriter |
40 | 40 | * |
41 | - * @param \XmlWriter $xml |
|
42 | 41 | * @param array $array |
43 | 42 | * @see https://bugs.php.net/bug.php?id=63589 |
44 | 43 | */ |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @param string $key |
188 | 188 | * @param boolean $raw Set to true to get the raw URL encoded value |
189 | 189 | * @param string $filter POSIX character classes e.g. alnum, alpha |
190 | - * @return mixed |
|
190 | + * @return string |
|
191 | 191 | */ |
192 | 192 | public function getParam($key, $raw=false, $filter=null) |
193 | 193 | { |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | /** |
423 | 423 | * Handles gzip decoding |
424 | 424 | * |
425 | - * @param boolean $cache Wether to cache the body after decoding. |
|
425 | + * @param string $data |
|
426 | 426 | * @return string |
427 | 427 | * @throws \BadFunctionCallException |
428 | 428 | * @codeCoverageIgnore |
@@ -162,7 +162,7 @@ |
||
162 | 162 | /** |
163 | 163 | * Get the documentation for the provided entity and method. |
164 | 164 | * |
165 | - * @param EntityInterface $entity The Entity object to interact with. |
|
165 | + * @param Entity $entity The Entity object to interact with. |
|
166 | 166 | * @param string|null $method Optional. The Request-method or all. |
167 | 167 | * @param string|null $path Optional. Request-URI for that entity. |
168 | 168 | * @return array The entity array documentation. |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * Adds a resource entity. |
56 | 56 | * |
57 | 57 | * @param string $name A resource name |
58 | - * @param array $resource A resource definition array |
|
58 | + * @param array $resources A resource definition array |
|
59 | 59 | * @return Entity |
60 | 60 | */ |
61 | 61 | public function add($name, array $resources) |
@@ -344,7 +344,7 @@ |
||
344 | 344 | /** |
345 | 345 | * Gets the current HTTP code. |
346 | 346 | * |
347 | - * @return intger |
|
347 | + * @return string |
|
348 | 348 | */ |
349 | 349 | public function getHttpCode() |
350 | 350 | { |
@@ -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) |