@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * @author Johannes M. Schmitt <[email protected]> |
| 17 | 17 | */ |
| 18 | 18 | class AclAwareAmazonS3 implements Adapter, |
| 19 | - MetadataSupporter |
|
| 19 | + MetadataSupporter |
|
| 20 | 20 | { |
| 21 | 21 | protected $delegate; |
| 22 | 22 | protected $s3; |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | $blobList = $this->blobProxy->listBlobs($this->containerName); |
| 208 | 208 | |
| 209 | 209 | return array_map( |
| 210 | - function ($blob) { |
|
| 210 | + function($blob) { |
|
| 211 | 211 | return $blob->getName(); |
| 212 | 212 | }, |
| 213 | 213 | $blobList->getBlobs() |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @author Paweł Czyżewski <[email protected]> |
| 19 | 19 | */ |
| 20 | 20 | class AzureBlobStorage implements Adapter, |
| 21 | - MetadataSupporter |
|
| 21 | + MetadataSupporter |
|
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * Error constants. |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | |
| 90 | 90 | if ($status) { |
| 91 | 91 | $params = array('key' => $key, 'class' => $metadata['mogile_class'], 'devid' => $res['devid'], |
| 92 | - 'fid' => $res['fid'], 'path' => urldecode($res['path']), ); |
|
| 92 | + 'fid' => $res['fid'], 'path' => urldecode($res['path']),); |
|
| 93 | 93 | $closeres = $this->doRequest('CREATE_CLOSE', $params); |
| 94 | 94 | } |
| 95 | 95 | } |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** |
| 251 | 251 | * Makes request to MogileFS tracker. |
| 252 | 252 | * |
| 253 | - * @param cmd Command |
|
| 253 | + * @param cmd string |
|
| 254 | 254 | * @param args Array of arguments |
| 255 | 255 | * |
| 256 | 256 | * @return mixed Array on success, false on failure |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | /** |
| 303 | 303 | * Get file location at server from MogileFS tracker. |
| 304 | 304 | * |
| 305 | - * @param key File key |
|
| 305 | + * @param key string key |
|
| 306 | 306 | * |
| 307 | 307 | * @return mixed Array on success, false on failure |
| 308 | 308 | */ |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | * Sends file to MogileFS tracker. |
| 319 | 319 | * |
| 320 | 320 | * @param path Save path at server |
| 321 | - * @param data Data to save |
|
| 321 | + * @param data string to save |
|
| 322 | 322 | * |
| 323 | 323 | * @return bool |
| 324 | 324 | */ |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function keys() |
| 60 | 60 | { |
| 61 | - return array_map(function ($content) { |
|
| 61 | + return array_map(function($content) { |
|
| 62 | 62 | return $content['path']; |
| 63 | 63 | }, $this->adapter->listContents()); |
| 64 | 64 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * @author Antoine Hérault <[email protected]> |
| 14 | 14 | */ |
| 15 | 15 | class InMemory implements Adapter, |
| 16 | - MimeTypeProvider |
|
| 16 | + MimeTypeProvider |
|
| 17 | 17 | { |
| 18 | 18 | protected $files = array(); |
| 19 | 19 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $this->ensureDirectoryExists($this->directory, $this->create); |
| 122 | 122 | |
| 123 | 123 | $file = $this->computePath($key); |
| 124 | - $lines = ftp_rawlist($this->getConnection(), '-al ' . \Gaufrette\Util\Path::dirname($file)); |
|
| 124 | + $lines = ftp_rawlist($this->getConnection(), '-al '.\Gaufrette\Util\Path::dirname($file)); |
|
| 125 | 125 | |
| 126 | 126 | if (false === $lines) { |
| 127 | 127 | return false; |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | } |
| 527 | 527 | |
| 528 | 528 | // enable utf8 mode if configured |
| 529 | - if($this->utf8 == true) { |
|
| 529 | + if ($this->utf8 == true) { |
|
| 530 | 530 | ftp_raw($this->connection, "OPTS UTF8 ON"); |
| 531 | 531 | } |
| 532 | 532 | |
@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | * @author Antoine Hérault <[email protected]> |
| 13 | 13 | */ |
| 14 | 14 | class Ftp implements Adapter, |
| 15 | - FileFactory, |
|
| 16 | - ListKeysAware, |
|
| 17 | - SizeCalculator |
|
| 15 | + FileFactory, |
|
| 16 | + ListKeysAware, |
|
| 17 | + SizeCalculator |
|
| 18 | 18 | { |
| 19 | 19 | protected $connection = null; |
| 20 | 20 | protected $directory; |
@@ -263,8 +263,8 @@ discard block |
||
| 263 | 263 | $this->fileData = array_merge($fileData, $this->fileData); |
| 264 | 264 | |
| 265 | 265 | return array( |
| 266 | - 'keys' => array_keys($fileData), |
|
| 267 | - 'dirs' => $dirs, |
|
| 266 | + 'keys' => array_keys($fileData), |
|
| 267 | + 'dirs' => $dirs, |
|
| 268 | 268 | ); |
| 269 | 269 | } |
| 270 | 270 | |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | * @param string $key - by default '' |
| 139 | 139 | * @param int $format - by default APC_ITER_NONE |
| 140 | 140 | * |
| 141 | - * @return \APCIterator |
|
| 141 | + * @return \Traversable |
|
| 142 | 142 | */ |
| 143 | 143 | protected function getCachedKeysIterator($key = '', $format = APC_ITER_NONE) |
| 144 | 144 | { |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * @param string $path |
| 215 | 215 | * |
| 216 | - * @return mixed |
|
| 216 | + * @return boolean |
|
| 217 | 217 | */ |
| 218 | 218 | public function unlink($path) |
| 219 | 219 | { |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | /** |
| 306 | 306 | * Gets a new stream instance of the specified file. |
| 307 | 307 | * |
| 308 | - * @param $key |
|
| 308 | + * @param string $key |
|
| 309 | 309 | * |
| 310 | 310 | * @return Stream|Stream\InMemoryBuffer |
| 311 | 311 | * |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | /** |
| 326 | 326 | * Creates a new file in a filesystem. |
| 327 | 327 | * |
| 328 | - * @param $key |
|
| 328 | + * @param string $key |
|
| 329 | 329 | * |
| 330 | 330 | * @return File |
| 331 | 331 | * |