Completed
Pull Request — master (#607)
by Romain
02:03
created
src/Gaufrette/Adapter/MogileFS.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
 
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
             }
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/DoctrineDbal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AzureBlobStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -512,10 +512,10 @@
 block discarded – undo
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
             },
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
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         if (isset($this->metadata[$key])) {
171 171
             return $this->metadata[$key];
172 172
         } else {
173
-            $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1,'_id' => 0]]);
173
+            $meta = $this->bucket->findOne(['filename' => $key], ['projection' => ['metadata' => 1, '_id' => 0]]);
174 174
 
175 175
             if ($meta === null || !isset($meta['metadata'])) {
176 176
                 return array();
@@ -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/Ftp.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $this->ensureDirectoryExists($this->directory, $this->create);
125 125
 
126 126
         $file  = $this->computePath($key);
127
-        $lines = ftp_rawlist($this->getConnection(), '-al ' . \Gaufrette\Util\Path::dirname($file));
127
+        $lines = ftp_rawlist($this->getConnection(), '-al '.\Gaufrette\Util\Path::dirname($file));
128 128
 
129 129
         if (false === $lines) {
130 130
             return false;
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
     private function createConnectionUrl()
362 362
     {
363 363
         $url = $this->ssl ? 'sftp://' : 'ftp://';
364
-        $url .= $this->username . ':' . $this->password . '@' . $this->host;
365
-        $url .= $this->port ? ':' . $this->port : '';
364
+        $url .= $this->username.':'.$this->password.'@'.$this->host;
365
+        $url .= $this->port ? ':'.$this->port : '';
366 366
 
367 367
         return $url;
368 368
     }
@@ -384,18 +384,18 @@  discard block
 block discarded – undo
384 384
 
385 385
             // change directory again to return in the base directory
386 386
             ftp_chdir($this->getConnection(), $this->directory);
387
-        } catch(\Exception $e) {
387
+        } catch (\Exception $e) {
388 388
 
389 389
             // Build the FTP URL that will be used to check if the path is a directory or not
390 390
             $url = $this->createConnectionUrl();
391 391
 
392 392
             // is_dir is only available in passive mode.
393 393
             // See https://php.net/manual/en/wrappers.ftp.php for more details.
394
-            if(!$this->passive) {
394
+            if (!$this->passive) {
395 395
                 throw new \BadFunctionCallException('is_dir can only be used in passive mode.');
396 396
             }
397 397
 
398
-            if (!@is_dir($url . $directory)) {
398
+            if (!@is_dir($url.$directory)) {
399 399
                 return false;
400 400
             }
401 401
         }
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
         }
584 584
 
585 585
         // enable utf8 mode if configured
586
-        if($this->utf8 == true) {
586
+        if ($this->utf8 == true) {
587 587
             ftp_raw($this->connection, "OPTS UTF8 ON");
588 588
         }
589 589
 
Please login to merge, or discard this patch.