@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @param string $key |
86 | 86 | * |
87 | - * @return string|bool if cannot read content |
|
87 | + * @return string if cannot read content |
|
88 | 88 | */ |
89 | 89 | public function read($key) |
90 | 90 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param string $key |
158 | 158 | * |
159 | - * @return int|bool An UNIX like timestamp or false |
|
159 | + * @return string|false An UNIX like timestamp or false |
|
160 | 160 | */ |
161 | 161 | public function mtime($key) |
162 | 162 | { |
@@ -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 | } |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | * @author Antoine Hérault <[email protected]> |
13 | 13 | */ |
14 | 14 | class Ftp implements Adapter, |
15 | - FileFactory, |
|
16 | - ListKeysAware |
|
15 | + FileFactory, |
|
16 | + ListKeysAware |
|
17 | 17 | { |
18 | 18 | protected $connection = null; |
19 | 19 | protected $directory; |
@@ -258,8 +258,8 @@ discard block |
||
258 | 258 | $this->fileData = array_merge($fileData, $this->fileData); |
259 | 259 | |
260 | 260 | return array( |
261 | - 'keys' => array_keys($fileData), |
|
262 | - 'dirs' => $dirs, |
|
261 | + 'keys' => array_keys($fileData), |
|
262 | + 'dirs' => $dirs, |
|
263 | 263 | ); |
264 | 264 | } |
265 | 265 |
@@ -119,7 +119,7 @@ |
||
119 | 119 | $this->ensureDirectoryExists($this->directory, $this->create); |
120 | 120 | |
121 | 121 | $file = $this->computePath($key); |
122 | - $lines = ftp_rawlist($this->getConnection(), '-al ' . str_replace('\\', '/', dirname($file))); |
|
122 | + $lines = ftp_rawlist($this->getConnection(), '-al '.str_replace('\\', '/', dirname($file))); |
|
123 | 123 | |
124 | 124 | if (false === $lines) { |
125 | 125 | return false; |