Completed
Pull Request — master (#607)
by Romain
02:02
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;
@@ -368,10 +368,10 @@  discard block
 block discarded – undo
368 368
 
369 369
         // Build the FTP URL that will be used to check if the path is a directory or not
370 370
         $url = $this->ssl ? 'sftp://' : 'ftp://';
371
-        $url .= $this->username . ':' . $this->password . '@' . $this->host;
372
-        $url .= $this->port ? ':' . $this->port : '';
371
+        $url .= $this->username.':'.$this->password.'@'.$this->host;
372
+        $url .= $this->port ? ':'.$this->port : '';
373 373
 
374
-        if (!@is_dir($url . $directory)) {
374
+        if (!@is_dir($url.$directory)) {
375 375
             return false;
376 376
         }
377 377
 
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
         }
558 558
 
559 559
         // enable utf8 mode if configured
560
-        if($this->utf8 == true) {
560
+        if ($this->utf8 == true) {
561 561
             ftp_raw($this->connection, "OPTS UTF8 ON");
562 562
         }
563 563
 
Please login to merge, or discard this patch.