Completed
Pull Request — master (#607)
by Romain
01:49
created
src/Gaufrette/Adapter/Ftp.php 1 patch
Spacing   +5 added lines, -5 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
     }
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 
399 399
             // Build the FTP URL that will be used to check if the path is a directory or not
400 400
             $url = $this->createConnectionUrl();
401
-            return @is_dir($url . $directory);
401
+            return @is_dir($url.$directory);
402 402
         }
403 403
 
404 404
         return true;
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
         }
581 581
 
582 582
         // enable utf8 mode if configured
583
-        if($this->utf8 == true) {
583
+        if ($this->utf8 == true) {
584 584
             ftp_raw($this->connection, "OPTS UTF8 ON");
585 585
         }
586 586
 
Please login to merge, or discard this patch.