Completed
Pull Request — master (#650)
by Ian
45s
created
src/Gaufrette/Util/Path.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             }
42 42
         }
43 43
 
44
-        return $prefix . implode('/', $tokens);
44
+        return $prefix.implode('/', $tokens);
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Local.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
     {
206 206
         $this->ensureDirectoryExists($this->directory, $this->create);
207 207
 
208
-        return $this->normalizePath($this->directory . '/' . $key);
208
+        return $this->normalizePath($this->directory.'/'.$key);
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Flysystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Zip.php 1 patch
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -166,46 +166,46 @@
 block discarded – undo
166 166
 
167 167
         if (true !== ($resultCode = $this->zipArchive->open($this->zipFile, ZipArchive::CREATE))) {
168 168
             switch ($resultCode) {
169
-            case ZipArchive::ER_EXISTS:
170
-                $errMsg = 'File already exists.';
169
+                case ZipArchive::ER_EXISTS:
170
+                    $errMsg = 'File already exists.';
171 171
 
172
-                break;
173
-            case ZipArchive::ER_INCONS:
174
-                $errMsg = 'Zip archive inconsistent.';
172
+                    break;
173
+                case ZipArchive::ER_INCONS:
174
+                    $errMsg = 'Zip archive inconsistent.';
175 175
 
176
-                break;
177
-            case ZipArchive::ER_INVAL:
178
-                $errMsg = 'Invalid argument.';
176
+                    break;
177
+                case ZipArchive::ER_INVAL:
178
+                    $errMsg = 'Invalid argument.';
179 179
 
180
-                break;
181
-            case ZipArchive::ER_MEMORY:
182
-                $errMsg = 'Malloc failure.';
180
+                    break;
181
+                case ZipArchive::ER_MEMORY:
182
+                    $errMsg = 'Malloc failure.';
183 183
 
184
-                break;
185
-            case ZipArchive::ER_NOENT:
186
-                $errMsg = 'Invalid argument.';
184
+                    break;
185
+                case ZipArchive::ER_NOENT:
186
+                    $errMsg = 'Invalid argument.';
187 187
 
188
-                break;
189
-            case ZipArchive::ER_NOZIP:
190
-                $errMsg = 'Not a zip archive.';
188
+                    break;
189
+                case ZipArchive::ER_NOZIP:
190
+                    $errMsg = 'Not a zip archive.';
191 191
 
192
-                break;
193
-            case ZipArchive::ER_OPEN:
194
-                $errMsg = 'Can\'t open file.';
192
+                    break;
193
+                case ZipArchive::ER_OPEN:
194
+                    $errMsg = 'Can\'t open file.';
195 195
 
196
-                break;
197
-            case ZipArchive::ER_READ:
198
-                $errMsg = 'Read error.';
196
+                    break;
197
+                case ZipArchive::ER_READ:
198
+                    $errMsg = 'Read error.';
199 199
 
200
-                break;
201
-            case ZipArchive::ER_SEEK:
202
-                $errMsg = 'Seek error.';
200
+                    break;
201
+                case ZipArchive::ER_SEEK:
202
+                    $errMsg = 'Seek error.';
203 203
 
204
-                break;
205
-            default:
206
-                $errMsg = 'Unknown error.';
204
+                    break;
205
+                default:
206
+                    $errMsg = 'Unknown error.';
207 207
 
208
-                break;
208
+                    break;
209 209
             }
210 210
 
211 211
             throw new \RuntimeException(sprintf('%s', $errMsg));
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/DoctrineDbal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 
185 185
         return [
186 186
             'dirs' => [],
187
-            'keys' => array_map(function ($value) {
187
+            'keys' => array_map(function($value) {
188 188
                 return $value['_key'];
189 189
             },
190 190
                 $keys),
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/PhpseclibSftp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
     protected function computePath($key)
202 202
     {
203
-        return $this->directory . '/' . ltrim($key, '/');
203
+        return $this->directory.'/'.ltrim($key, '/');
204 204
     }
205 205
 
206 206
     protected function fetchKeys($directory = '', $onlyKeys = true)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                 continue;
219 219
             }
220 220
 
221
-            $path = ltrim($directory . '/' . $filename, '/');
221
+            $path = ltrim($directory.'/'.$filename, '/');
222 222
             if (isset($stat['type']) && $stat['type'] === NET_SFTP_TYPE_DIRECTORY) {
223 223
                 $keys['dirs'][] = $path;
224 224
             } else {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GridFS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         if (isset($this->metadata[$key])) {
172 172
             return $this->metadata[$key];
173 173
         }
174
-        $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1,'_id' => 0]]);
174
+        $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1, '_id' => 0]]);
175 175
 
176 176
         if ($meta === null || !isset($meta['metadata'])) {
177 177
             return [];
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         if (!$this->exists($key)) {
216 216
             return false;
217 217
         }
218
-        $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1,'_id' => 0]]);
218
+        $size = $this->bucket->findOne(['filename' => $key], ['projection' => ['length' => 1, '_id' => 0]]);
219 219
         if (!isset($size['length'])) {
220 220
             return false;
221 221
         }
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AzureBlobStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
                 $containersList = $this->blobProxy->listContainers();
274 274
 
275 275
                 return call_user_func_array('array_merge', array_map(
276
-                    function (Container $container) {
276
+                    function(Container $container) {
277 277
                         $containerName = $container->getName();
278 278
 
279 279
                         return $this->fetchBlobs($containerName, $containerName);
@@ -567,10 +567,10 @@  discard block
 block discarded – undo
567 567
         $blobList = $this->blobProxy->listBlobs($containerName);
568 568
 
569 569
         return array_map(
570
-            function (Blob $blob) use ($prefix) {
570
+            function(Blob $blob) use ($prefix) {
571 571
                 $name = $blob->getName();
572 572
                 if (null !== $prefix) {
573
-                    $name = $prefix . '/' . $name;
573
+                    $name = $prefix.'/'.$name;
574 574
                 }
575 575
 
576 576
                 return $name;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AwsS3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $this->ensureBucketExists();
140 140
         $options = $this->getOptions(
141 141
             $targetKey,
142
-            ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)]
142
+            ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)]
143 143
         );
144 144
 
145 145
         try {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     {
269 269
         $result = $this->service->listObjects([
270 270
             'Bucket' => $this->bucket,
271
-            'Prefix' => rtrim($this->computePath($key), '/') . '/',
271
+            'Prefix' => rtrim($this->computePath($key), '/').'/',
272 272
             'MaxKeys' => 1,
273 273
         ]);
274 274
         if (isset($result['Contents'])) {
Please login to merge, or discard this patch.