@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace h4kuna\Upload; |
4 | 4 | |
5 | -use Nette\Application, |
|
6 | - Nette\Http; |
|
5 | +use Nette\Application; |
|
6 | +use Nette\Http; |
|
7 | 7 | |
8 | 8 | class Download |
9 | 9 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace h4kuna\Upload\Driver; |
4 | 4 | |
5 | -use h4kuna\Upload, |
|
6 | - Nette\Http; |
|
5 | +use h4kuna\Upload; |
|
6 | +use Nette\Http; |
|
7 | 7 | |
8 | 8 | class Ftp implements Upload\IDriver |
9 | 9 | { |
@@ -28,6 +28,9 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $relativePath |
|
33 | + */ |
|
31 | 34 | public function isFileExists($relativePath) |
32 | 35 | { |
33 | 36 | return $this->ftp->fileExists(Upload\Utils::makeRelativePath($relativePath)); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function loadConfiguration() |
33 | 33 | { |
34 | 34 | $builder = $this->getContainerBuilder(); |
35 | - $config = $this->config + $this->defaults;; |
|
35 | + $config = $this->config + $this->defaults; ; |
|
36 | 36 | if (!is_array($config['destinations'])) { |
37 | 37 | if ($config['destinations']) { |
38 | 38 | $config['destinations'] = ['default' => $config['destinations']]; |