@@ -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 | } |
@@ -384,7 +384,7 @@ discard block |
||
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 | // Cache the actual value of the passive mode |
390 | 390 | $actualPassiveMode = $this->passive; |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | // Build the FTP URL that will be used to check if the path is a directory or not |
394 | 394 | $url = $this->createConnectionUrl(); |
395 | 395 | |
396 | - if (!@is_dir($url . $directory)) { |
|
396 | + if (!@is_dir($url.$directory)) { |
|
397 | 397 | |
398 | 398 | // Revert back the value of the passive mode. |
399 | 399 | $this->passive = $actualPassiveMode; |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | } |
589 | 589 | |
590 | 590 | // enable utf8 mode if configured |
591 | - if($this->utf8 == true) { |
|
591 | + if ($this->utf8 == true) { |
|
592 | 592 | ftp_raw($this->connection, "OPTS UTF8 ON"); |
593 | 593 | } |
594 | 594 |