@@ -184,6 +184,9 @@ discard block |
||
184 | 184 | return $endpoint; |
185 | 185 | } |
186 | 186 | |
187 | + /** |
|
188 | + * @param integer $length |
|
189 | + */ |
|
187 | 190 | private static function adjustSlice($length, $start, $stop, $step) |
188 | 191 | { |
189 | 192 | if ($step === null) { |
@@ -207,6 +210,11 @@ discard block |
||
207 | 210 | return [$start, $stop, $step]; |
208 | 211 | } |
209 | 212 | |
213 | + /** |
|
214 | + * @param integer|null $start |
|
215 | + * @param integer|null $stop |
|
216 | + * @param integer $step |
|
217 | + */ |
|
210 | 218 | private static function sliceIndices($subject, $start, $stop, $step) |
211 | 219 | { |
212 | 220 | $type = gettype($subject); |
@@ -219,7 +219,7 @@ |
||
219 | 219 | * @param string $id The unique identifier for the object |
220 | 220 | * @param callable $callable A service definition to extend the original |
221 | 221 | * |
222 | - * @return callable The wrapped callable |
|
222 | + * @return \Closure The wrapped callable |
|
223 | 223 | * |
224 | 224 | * @throws \InvalidArgumentException if the identifier is not defined or not a service definition |
225 | 225 | */ |
@@ -244,7 +244,7 @@ |
||
244 | 244 | * |
245 | 245 | * @param string $path |
246 | 246 | * @param string|resource $contents |
247 | - * @param string|array $mode |
|
247 | + * @param string $mode |
|
248 | 248 | * |
249 | 249 | * @return array |
250 | 250 | */ |
@@ -241,6 +241,7 @@ |
||
241 | 241 | |
242 | 242 | /** |
243 | 243 | * {@inheritdoc} |
244 | + * @param string $path |
|
244 | 245 | */ |
245 | 246 | public function applyPathPrefix($path): string |
246 | 247 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Registers the error handler. |
117 | 117 | * |
118 | - * @param self|null|int $handler The handler to register, or @deprecated (since version 2.6, to be removed in 3.0) bit field of thrown levels |
|
118 | + * @param ErrorHandler $handler The handler to register, or @deprecated (since version 2.6, to be removed in 3.0) bit field of thrown levels |
|
119 | 119 | * @param bool $replace Whether to replace or not any existing handler |
120 | 120 | * |
121 | 121 | * @return self The registered error handler |
@@ -355,6 +355,7 @@ discard block |
||
355 | 355 | |
356 | 356 | /** |
357 | 357 | * Re-registers as a PHP error handler if levels changed. |
358 | + * @param integer $prev |
|
358 | 359 | */ |
359 | 360 | private function reRegister($prev) |
360 | 361 | { |
@@ -145,6 +145,9 @@ discard block |
||
145 | 145 | return $this->class; |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $class |
|
150 | + */ |
|
148 | 151 | public function setClass($class) |
149 | 152 | { |
150 | 153 | $this->class = $class; |
@@ -155,6 +158,9 @@ discard block |
||
155 | 158 | return $this->file; |
156 | 159 | } |
157 | 160 | |
161 | + /** |
|
162 | + * @param string $file |
|
163 | + */ |
|
158 | 164 | public function setFile($file) |
159 | 165 | { |
160 | 166 | $this->file = $file; |
@@ -165,6 +171,9 @@ discard block |
||
165 | 171 | return $this->line; |
166 | 172 | } |
167 | 173 | |
174 | + /** |
|
175 | + * @param integer $line |
|
176 | + */ |
|
168 | 177 | public function setLine($line) |
169 | 178 | { |
170 | 179 | $this->line = $line; |
@@ -175,6 +184,9 @@ discard block |
||
175 | 184 | return $this->message; |
176 | 185 | } |
177 | 186 | |
187 | + /** |
|
188 | + * @param string $message |
|
189 | + */ |
|
178 | 190 | public function setMessage($message) |
179 | 191 | { |
180 | 192 | $this->message = $message; |
@@ -221,6 +233,10 @@ discard block |
||
221 | 233 | $this->setTrace($exception->getTrace(), $exception->getFile(), $exception->getLine()); |
222 | 234 | } |
223 | 235 | |
236 | + /** |
|
237 | + * @param string $file |
|
238 | + * @param integer $line |
|
239 | + */ |
|
224 | 240 | public function setTrace($trace, $file, $line) |
225 | 241 | { |
226 | 242 | $this->trace = array(); |
@@ -36,6 +36,10 @@ discard block |
||
36 | 36 | private $caughtLength; |
37 | 37 | private $fileLinkFormat; |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $charset |
|
41 | + * @param string $fileLinkFormat |
|
42 | + */ |
|
39 | 43 | public function __construct($debug = true, $charset = null, $fileLinkFormat = null) |
40 | 44 | { |
41 | 45 | if (false !== strpos($charset, '%')) { |
@@ -180,7 +184,7 @@ discard block |
||
180 | 184 | * This method uses plain PHP functions like header() and echo to output |
181 | 185 | * the response. |
182 | 186 | * |
183 | - * @param \Exception|FlattenException $exception An \Exception or FlattenException instance |
|
187 | + * @param \Exception $exception An \Exception or FlattenException instance |
|
184 | 188 | */ |
185 | 189 | public function sendPhpResponse($exception) |
186 | 190 | { |
@@ -202,7 +206,7 @@ discard block |
||
202 | 206 | /** |
203 | 207 | * Creates the error Response associated with the given Exception. |
204 | 208 | * |
205 | - * @param \Exception|FlattenException $exception An \Exception or FlattenException instance |
|
209 | + * @param \Exception $exception An \Exception or FlattenException instance |
|
206 | 210 | * |
207 | 211 | * @return Response A Response instance |
208 | 212 | * |
@@ -222,7 +226,7 @@ discard block |
||
222 | 226 | /** |
223 | 227 | * Gets the full HTML content associated with the given exception. |
224 | 228 | * |
225 | - * @param \Exception|FlattenException $exception An \Exception or FlattenException instance |
|
229 | + * @param FlattenException $exception An \Exception or FlattenException instance |
|
226 | 230 | * |
227 | 231 | * @return string The HTML content as a string |
228 | 232 | */ |
@@ -369,6 +373,10 @@ discard block |
||
369 | 373 | EOF; |
370 | 374 | } |
371 | 375 | |
376 | + /** |
|
377 | + * @param string $content |
|
378 | + * @param string $css |
|
379 | + */ |
|
372 | 380 | private function decorate($content, $css) |
373 | 381 | { |
374 | 382 | return <<<EOF |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @param string $name The name of the cookie |
33 | 33 | * @param string $value The value of the cookie |
34 | - * @param int|string|\DateTime|\DateTimeInterface $expire The time the cookie expires |
|
34 | + * @param integer $expire The time the cookie expires |
|
35 | 35 | * @param string $path The path on the server in which the cookie will be available on |
36 | 36 | * @param string $domain The domain that the cookie is available to |
37 | 37 | * @param bool $secure Whether the cookie should only be transmitted over a secure HTTPS connection from the client |
@@ -103,6 +103,10 @@ |
||
103 | 103 | return $target; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $directory |
|
108 | + * @param string $name |
|
109 | + */ |
|
106 | 110 | protected function getTargetFile($directory, $name = null) |
107 | 111 | { |
108 | 112 | if (!is_dir($directory)) { |