@@ -29,6 +29,9 @@ |
||
| 29 | 29 | return $this->hostUrl . '/' . Upload\Utils::makeRelativePath($relativePath); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $relativePath |
|
| 34 | + */ |
|
| 32 | 35 | public function isFileExists($relativePath) |
| 33 | 36 | { |
| 34 | 37 | return $this->ftp->fileExists(Upload\Utils::makeRelativePath($relativePath)); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $name = $fileUpload->getSanitizedName(); |
| 22 | 22 | |
| 23 | 23 | //if we call moretimes, name is not unique, generate another one |
| 24 | - if($this->called !== 0) { |
|
| 24 | + if ($this->called !== 0) { |
|
| 25 | 25 | $parts = pathinfo($name); |
| 26 | 26 | $name = $parts['filename'] . $this->called . '.' . $parts['extension']; |
| 27 | 27 | } |