Completed
Pull Request — master (#650)
by Ian
45s
created
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@
 block discarded – undo
270 270
      */
271 271
     public function isDirectory($key)
272 272
     {
273
-        if ($this->exists($key . '/')) {
273
+        if ($this->exists($key.'/')) {
274 274
             return true;
275 275
         }
276 276
 
Please login to merge, or discard this patch.
src/Gaufrette/StreamWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -257,11 +257,11 @@
 block discarded – undo
257 257
         $key = substr($parts['path'], 1);
258 258
 
259 259
         if (null !== $parts['query']) {
260
-            $key .= '?' . $parts['query'];
260
+            $key .= '?'.$parts['query'];
261 261
         }
262 262
 
263 263
         if (null !== $parts['fragment']) {
264
-            $key .= '#' . $parts['fragment'];
264
+            $key .= '#'.$parts['fragment'];
265 265
         }
266 266
 
267 267
         if (empty($domain) || empty($key)) {
Please login to merge, or discard this patch.
src/Gaufrette/Stream/InMemoryBuffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         } else {
90 90
             $before = substr($this->content, 0, $this->position);
91 91
             $after = $newNumBytes > $newPosition ? substr($this->content, $newPosition) : '';
92
-            $this->content = $before . $data . $after;
92
+            $this->content = $before.$data.$after;
93 93
         }
94 94
 
95 95
         $this->position = $newPosition;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AsyncAwsS3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->ensureBucketExists();
107 107
         $options = $this->getOptions(
108 108
             $targetKey,
109
-            ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)]
109
+            ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)]
110 110
         );
111 111
 
112 112
         try {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     {
248 248
         $result = $this->service->listObjectsV2([
249 249
             'Bucket' => $this->bucket,
250
-            'Prefix' => rtrim($this->computePath($key), '/') . '/',
250
+            'Prefix' => rtrim($this->computePath($key), '/').'/',
251 251
             'MaxKeys' => 1,
252 252
         ]);
253 253
 
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/FlysystemV2.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         try {
54 54
             $this->adapter->write($key, $content, $this->config);
55 55
             return $this->adapter->fileSize($key)->fileSize();
56
-        } catch(UnableToWriteFile $exception) {
56
+        } catch (UnableToWriteFile $exception) {
57 57
             return false;
58 58
         }
59 59
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function keys()
73 73
     {
74
-        return array_map(function (StorageAttributes $content) {
74
+        return array_map(function(StorageAttributes $content) {
75 75
             return $content->path();
76 76
         }, $this->adapter->listContents('', true));
77 77
     }
Please login to merge, or discard this patch.