@@ -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)) { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * Returns a header value by name. |
| 105 | 105 | * |
| 106 | 106 | * @param string $key The header name |
| 107 | - * @param mixed $default The default value |
|
| 107 | + * @param string|null $default The default value |
|
| 108 | 108 | * @param bool $first Whether to return the first value or all header values |
| 109 | 109 | * |
| 110 | 110 | * @return string|array The first header value if $first is true, an array of values otherwise |
@@ -563,7 +563,7 @@ discard block |
||
| 563 | 563 | /** |
| 564 | 564 | * Gets the list of trusted proxies. |
| 565 | 565 | * |
| 566 | - * @return array An array of trusted proxies |
|
| 566 | + * @return string[] An array of trusted proxies |
|
| 567 | 567 | */ |
| 568 | 568 | public static function getTrustedProxies() |
| 569 | 569 | { |
@@ -589,7 +589,7 @@ discard block |
||
| 589 | 589 | /** |
| 590 | 590 | * Gets the list of trusted host patterns. |
| 591 | 591 | * |
| 592 | - * @return array An array of trusted host patterns |
|
| 592 | + * @return string[] An array of trusted host patterns |
|
| 593 | 593 | */ |
| 594 | 594 | public static function getTrustedHosts() |
| 595 | 595 | { |
@@ -1448,7 +1448,6 @@ discard block |
||
| 1448 | 1448 | * |
| 1449 | 1449 | * @see https://tools.ietf.org/html/rfc7231#section-4.2.1 |
| 1450 | 1450 | * |
| 1451 | - * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default. |
|
| 1452 | 1451 | * |
| 1453 | 1452 | * @return bool |
| 1454 | 1453 | */ |
@@ -1907,6 +1906,9 @@ discard block |
||
| 1907 | 1906 | return false; |
| 1908 | 1907 | } |
| 1909 | 1908 | |
| 1909 | + /** |
|
| 1910 | + * @param string $content |
|
| 1911 | + */ |
|
| 1910 | 1912 | private static function createRequestFromFactory(array $query = array(), array $request = array(), array $attributes = array(), array $cookies = array(), array $files = array(), array $server = array(), $content = null) |
| 1911 | 1913 | { |
| 1912 | 1914 | if (self::$requestFactory) { |
@@ -1927,6 +1929,9 @@ discard block |
||
| 1927 | 1929 | return self::$trustedProxies && IpUtils::checkIp($this->server->get('REMOTE_ADDR'), self::$trustedProxies); |
| 1928 | 1930 | } |
| 1929 | 1931 | |
| 1932 | + /** |
|
| 1933 | + * @param string $type |
|
| 1934 | + */ |
|
| 1930 | 1935 | private function getTrustedValues($type, $ip = null) |
| 1931 | 1936 | { |
| 1932 | 1937 | $clientValues = array(); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * return Response::create($body, 200) |
| 217 | 217 | * ->setSharedMaxAge(300); |
| 218 | 218 | * |
| 219 | - * @param mixed $content The response content, see setContent() |
|
| 219 | + * @param string $content The response content, see setContent() |
|
| 220 | 220 | * @param int $status The response status code |
| 221 | 221 | * @param array $headers An array of response headers |
| 222 | 222 | * |
@@ -990,7 +990,7 @@ discard block |
||
| 990 | 990 | /** |
| 991 | 991 | * Sets the Vary header. |
| 992 | 992 | * |
| 993 | - * @param string|array $headers |
|
| 993 | + * @param string $headers |
|
| 994 | 994 | * @param bool $replace Whether to replace the actual value or not (true by default) |
| 995 | 995 | * |
| 996 | 996 | * @return $this |
@@ -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 | { |
@@ -117,6 +117,7 @@ |
||
| 117 | 117 | * {@inheritdoc} |
| 118 | 118 | * |
| 119 | 119 | * @throws \LogicException when the content is not null |
| 120 | + * @param string $content |
|
| 120 | 121 | */ |
| 121 | 122 | public function setContent($content) |
| 122 | 123 | { |
@@ -165,6 +165,12 @@ |
||
| 165 | 165 | @rmdir($targetDir); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $path |
|
| 170 | + * @param string $mimeType |
|
| 171 | + * |
|
| 172 | + * @return \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface |
|
| 173 | + */ |
|
| 168 | 174 | protected function createMockGuesser($path, $mimeType) |
| 169 | 175 | { |
| 170 | 176 | $guesser = $this->getMockBuilder('Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface')->getMock(); |
@@ -318,6 +318,9 @@ discard block |
||
| 318 | 318 | $this->assertInstanceOf('\PDO', $method->invoke($storage)); |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | + /** |
|
| 322 | + * @param string $content |
|
| 323 | + */ |
|
| 321 | 324 | private function createStream($content) |
| 322 | 325 | { |
| 323 | 326 | $stream = tmpfile(); |
@@ -334,6 +337,9 @@ discard block |
||
| 334 | 337 | private $driverName; |
| 335 | 338 | private $errorMode; |
| 336 | 339 | |
| 340 | + /** |
|
| 341 | + * @param string $driverName |
|
| 342 | + */ |
|
| 337 | 343 | public function __construct($driverName = null, $errorMode = null) |
| 338 | 344 | { |
| 339 | 345 | $this->driverName = $driverName; |