Completed
Push — master ( 59e00c...5e8ec5 )
by Thomas
02:50 queued 11s
created
src/BaiduBosAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     public function deleteDir($dirname)
165 165
     {
166 166
         try {
167
-            $this->client->deleteObject(rtrim($dirname, '/') . '/');
167
+            $this->client->deleteObject(rtrim($dirname, '/').'/');
168 168
         } catch (Exception $exception) {
169 169
             return false;
170 170
         }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         try {
186 186
             $this->client->putObject(
187
-                rtrim($dirname, '/') . '/',
187
+                rtrim($dirname, '/').'/',
188 188
                 '',
189 189
                 $this->extractOptions($config)
190 190
             );
@@ -266,12 +266,12 @@  discard block
 block discarded – undo
266 266
         $result = $this->client->listObjects($options);
267 267
 
268 268
         $prefixes = isset($result['commonPrefixes'])
269
-            ? array_map(function ($item) {
269
+            ? array_map(function($item) {
270 270
                 return ['key' => $item['prefix']];
271 271
             }, $result['commonPrefixes'])
272 272
             : [];
273 273
 
274
-        return array_map(function ($content) {
274
+        return array_map(function($content) {
275 275
             return $this->normalizeContent($content);
276 276
         }, array_merge($result['contents'], $prefixes));
277 277
     }
Please login to merge, or discard this patch.