@@ -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; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * Tells the SQLite driver how long to wait for data to be written. |
| 215 | 215 | * |
| 216 | 216 | * @param int $milliseconds |
| 217 | - * @return bool |
|
| 217 | + * @return boolean|null |
|
| 218 | 218 | */ |
| 219 | 219 | protected function setTimeout($milliseconds) |
| 220 | 220 | { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * Retrieves the relevant SQLite driver, creating the database file if necessary. |
| 228 | 228 | * |
| 229 | - * @return \SQLiteDatabase |
|
| 229 | + * @return \PDO |
|
| 230 | 230 | * @throws \Stash\Exception\RuntimeException |
| 231 | 231 | */ |
| 232 | 232 | protected function getDriver() |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | /** |
| 279 | 279 | * Creates the actual database driver itself. |
| 280 | 280 | * |
| 281 | - * @return \SQLiteDatabase |
|
| 281 | + * @return \PDO |
|
| 282 | 282 | * @throws \Stash\Exception\RuntimeException |
| 283 | 283 | */ |
| 284 | 284 | protected function buildDriver() |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * session should last. |
| 113 | 113 | * |
| 114 | 114 | * @param array $options |
| 115 | - * @return bool |
|
| 115 | + * @return boolean|null |
|
| 116 | 116 | */ |
| 117 | 117 | public function setOptions($options = array()) |
| 118 | 118 | { |
@@ -147,6 +147,9 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $session_id |
|
| 152 | + */ |
|
| 150 | 153 | protected function getCache($session_id) |
| 151 | 154 | { |
| 152 | 155 | $path = '/' . |
@@ -212,6 +212,7 @@ |
||
| 212 | 212 | * |
| 213 | 213 | * @throws Exception\RuntimeException |
| 214 | 214 | * @throws Exception\InvalidArgumentException |
| 215 | + * @param string $path |
|
| 215 | 216 | */ |
| 216 | 217 | public static function checkFileSystemPermissions($path = null, $permissions) |
| 217 | 218 | { |