@@ -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 | |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | |
| 184 | 184 | return array( |
| 185 | 185 | 'dirs' => array(), |
| 186 | - 'keys' => array_map(function ($value) { |
|
| 186 | + 'keys' => array_map(function($value) { |
|
| 187 | 187 | return $value['_key']; |
| 188 | 188 | }, |
| 189 | 189 | $keys), |
@@ -512,10 +512,10 @@ |
||
| 512 | 512 | { |
| 513 | 513 | $blobList = $this->blobProxy->listBlobs($containerName); |
| 514 | 514 | return array_map( |
| 515 | - function (Blob $blob) use ($prefix) { |
|
| 515 | + function(Blob $blob) use ($prefix) { |
|
| 516 | 516 | $name = $blob->getName(); |
| 517 | 517 | if (null !== $prefix) { |
| 518 | - $name = $prefix .'/'. $name; |
|
| 518 | + $name = $prefix.'/'.$name; |
|
| 519 | 519 | } |
| 520 | 520 | return $name; |
| 521 | 521 | }, |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | public static function unexpectedFailure($action, array $args, \Exception $previous = null) |
| 24 | 24 | { |
| 25 | - $args = array_map(function ($k, $v) { |
|
| 25 | + $args = array_map(function($k, $v) { |
|
| 26 | 26 | $v = is_string($v) ? '"'.$v.'"' : $v; |
| 27 | 27 | |
| 28 | 28 | return "{$k}: {$v}"; |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | public function keys() |
| 96 | 96 | { |
| 97 | 97 | try { |
| 98 | - return array_map(function ($content) { |
|
| 98 | + return array_map(function($content) { |
|
| 99 | 99 | return $content['path']; |
| 100 | 100 | }, $this->adapter->listContents()); |
| 101 | 101 | } catch (\Exception $e) { |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | if (isset($this->metadata[$key])) { |
| 170 | 170 | return $this->metadata[$key]; |
| 171 | 171 | } else { |
| 172 | - $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1,'_id' => 0]]); |
|
| 172 | + $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1, '_id' => 0]]); |
|
| 173 | 173 | if ($meta === null) { |
| 174 | 174 | return array(); |
| 175 | 175 | } |