@@ -124,7 +124,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |