@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | protected $baseDirectory; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param string $baseDirectory |
|
| 12 | + */ |
|
| 10 | 13 | public function __construct($baseDirectory) |
| 11 | 14 | { |
| 12 | 15 | $this->baseDirectory = $this->normalizePath($baseDirectory) . DIRECTORY_SEPARATOR; |
@@ -20,6 +23,9 @@ discard block |
||
| 20 | 23 | return rtrim($path, DIRECTORY_SEPARATOR); |
| 21 | 24 | } |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $directory |
|
| 28 | + */ |
|
| 23 | 29 | protected function ensureDirectory($directory):bool |
| 24 | 30 | { |
| 25 | 31 | if (!file_exists($directory)) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Sirius\Upload; |
| 4 | 4 | |
| 5 | 5 | use Sirius\Upload\Result\Collection; |
| 6 | -use Sirius\Upload\Util\Helper; |
|
| 7 | 6 | use Sirius\Validation\Util\Arr; |
| 8 | 7 | |
| 9 | 8 | class HandlerAggregate implements \IteratorAggregate |