@@ -31,7 +31,7 @@ |
||
31 | 31 | * Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets. |
32 | 32 | * |
33 | 33 | * @param string $requestIp IP to check |
34 | - * @param string|array $ips List of IPs or subnets (can be a string if only a single one) |
|
34 | + * @param string[] $ips List of IPs or subnets (can be a string if only a single one) |
|
35 | 35 | * |
36 | 36 | * @return bool Whether the IP is valid |
37 | 37 | */ |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | * |
545 | 545 | * You should only list the reverse proxies that you manage directly. |
546 | 546 | * |
547 | - * @param array $proxies A list of trusted proxies |
|
547 | + * @param string[] $proxies A list of trusted proxies |
|
548 | 548 | */ |
549 | 549 | public static function setTrustedProxies(array $proxies) |
550 | 550 | { |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | /** |
555 | 555 | * Gets the list of trusted proxies. |
556 | 556 | * |
557 | - * @return array An array of trusted proxies |
|
557 | + * @return string[] An array of trusted proxies |
|
558 | 558 | */ |
559 | 559 | public static function getTrustedProxies() |
560 | 560 | { |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | /** |
581 | 581 | * Gets the list of trusted host patterns. |
582 | 582 | * |
583 | - * @return array An array of trusted host patterns |
|
583 | + * @return string[] An array of trusted host patterns |
|
584 | 584 | */ |
585 | 585 | public static function getTrustedHosts() |
586 | 586 | { |
@@ -1469,7 +1469,6 @@ discard block |
||
1469 | 1469 | * |
1470 | 1470 | * @see https://tools.ietf.org/html/rfc7231#section-4.2.1 |
1471 | 1471 | * |
1472 | - * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default. |
|
1473 | 1472 | * |
1474 | 1473 | * @return bool |
1475 | 1474 | */ |
@@ -1495,7 +1494,7 @@ discard block |
||
1495 | 1494 | * |
1496 | 1495 | * @param bool $asResource If true, a resource will be returned |
1497 | 1496 | * |
1498 | - * @return string|resource The request body content or a resource to read the body stream |
|
1497 | + * @return string The request body content or a resource to read the body stream |
|
1499 | 1498 | * |
1500 | 1499 | * @throws \LogicException |
1501 | 1500 | */ |
@@ -1928,6 +1927,9 @@ discard block |
||
1928 | 1927 | return false; |
1929 | 1928 | } |
1930 | 1929 | |
1930 | + /** |
|
1931 | + * @param string $content |
|
1932 | + */ |
|
1931 | 1933 | private static function createRequestFromFactory(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) |
1932 | 1934 | { |
1933 | 1935 | if (self::$requestFactory) { |
@@ -215,7 +215,7 @@ |
||
215 | 215 | * return Response::create($body, 200) |
216 | 216 | * ->setSharedMaxAge(300); |
217 | 217 | * |
218 | - * @param mixed $content The response content, see setContent() |
|
218 | + * @param string $content The response content, see setContent() |
|
219 | 219 | * @param int $status The response status code |
220 | 220 | * @param array $headers An array of response headers |
221 | 221 | * |
@@ -113,6 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * {@inheritdoc} |
116 | + * @param string $key |
|
116 | 117 | */ |
117 | 118 | public function remove($key) |
118 | 119 | { |
@@ -128,6 +129,7 @@ discard block |
||
128 | 129 | |
129 | 130 | /** |
130 | 131 | * {@inheritdoc} |
132 | + * @param string $key |
|
131 | 133 | */ |
132 | 134 | public function hasCacheControlDirective($key) |
133 | 135 | { |
@@ -136,6 +138,7 @@ discard block |
||
136 | 138 | |
137 | 139 | /** |
138 | 140 | * {@inheritdoc} |
141 | + * @param string $key |
|
139 | 142 | */ |
140 | 143 | public function getCacheControlDirective($key) |
141 | 144 | { |
@@ -81,6 +81,9 @@ |
||
81 | 81 | return 'memory'; |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @param string $memoryLimit |
|
86 | + */ |
|
84 | 87 | private function convertToBytes($memoryLimit) |
85 | 88 | { |
86 | 89 | if ('-1' === $memoryLimit) { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param callable|null $exceptionHandler A handler that will be called on Exception |
42 | 42 | * @param LoggerInterface|null $logger A PSR-3 logger |
43 | 43 | * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants |
44 | - * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value |
|
44 | + * @param integer $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value |
|
45 | 45 | * @param bool $scream Enables/disables screaming mode, where even silenced errors are logged |
46 | 46 | * @param string $fileLinkFormat The format for links to source files |
47 | 47 | */ |
@@ -379,7 +379,7 @@ |
||
379 | 379 | * @param string $key The store key |
380 | 380 | * @param string $data The data to store |
381 | 381 | * |
382 | - * @return bool |
|
382 | + * @return false|null |
|
383 | 383 | */ |
384 | 384 | private function save($key, $data) |
385 | 385 | { |
@@ -231,6 +231,9 @@ discard block |
||
231 | 231 | */ |
232 | 232 | abstract protected function appendValue($key, $value, $expiration = 0); |
233 | 233 | |
234 | + /** |
|
235 | + * @param string $token |
|
236 | + */ |
|
234 | 237 | private function createProfileFromData($token, $data, $parent = null) |
235 | 238 | { |
236 | 239 | $profile = new Profile($token); |
@@ -297,6 +300,9 @@ discard block |
||
297 | 300 | return false; |
298 | 301 | } |
299 | 302 | |
303 | + /** |
|
304 | + * @param string $name |
|
305 | + */ |
|
300 | 306 | private function isItemNameValid($name) |
301 | 307 | { |
302 | 308 | $length = strlen($name); |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param resource $file The file resource, with the pointer placed at the end of the line to read |
216 | 216 | * |
217 | - * @return mixed A string representing the line or null if beginning of file is reached |
|
217 | + * @return null|string A string representing the line or null if beginning of file is reached |
|
218 | 218 | */ |
219 | 219 | protected function readLineFromFile($file) |
220 | 220 | { |
@@ -254,6 +254,9 @@ discard block |
||
254 | 254 | return '' === $line ? null : $line; |
255 | 255 | } |
256 | 256 | |
257 | + /** |
|
258 | + * @param string $token |
|
259 | + */ |
|
257 | 260 | protected function createProfileFromData($token, $data, $parent = null) |
258 | 261 | { |
259 | 262 | $profile = new Profile($token); |