@@ -186,7 +186,7 @@ |
||
| 186 | 186 | |
| 187 | 187 | return array( |
| 188 | 188 | 'dirs' => array(), |
| 189 | - 'keys' => array_map(function ($value) { |
|
| 189 | + 'keys' => array_map(function($value) { |
|
| 190 | 190 | return $value['_key']; |
| 191 | 191 | }, |
| 192 | 192 | $keys) |
@@ -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() |
@@ -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 | } |
@@ -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 | } |
@@ -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 | |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | $files = array(); |
| 239 | 239 | $iter = $this->service->getIterator('ListObjects', $options); |
| 240 | 240 | foreach ($iter as $file) { |
| 241 | - $item= []; |
|
| 241 | + $item = []; |
|
| 242 | 242 | $item["key"] = $this->computeKey($file['Key']); |
| 243 | 243 | if (isset($file["LastModified"])) { |
| 244 | 244 | $item["mtime"] = $file["LastModified"]; |