@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * |
148 | 148 | * @param string $folderIdentifier |
149 | 149 | * @param string $newName |
150 | - * @return array A map of old to new file identifiers of all affected resources |
|
150 | + * @return boolean A map of old to new file identifiers of all affected resources |
|
151 | 151 | */ |
152 | 152 | public function renameFolder($folderIdentifier, $newName) |
153 | 153 | { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * Checks if a folder contains files and (if supported) other folders. |
182 | 182 | * |
183 | 183 | * @param string $folderIdentifier |
184 | - * @return bool TRUE if there are no files and folders within $folder |
|
184 | + * @return boolean|null TRUE if there are no files and folders within $folder |
|
185 | 185 | */ |
186 | 186 | public function isFolderEmpty($folderIdentifier) |
187 | 187 | { |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * |
273 | 273 | * @param string $fileIdentifier |
274 | 274 | * @param string $localFilePath |
275 | - * @return bool TRUE if the operation succeeded |
|
275 | + * @return boolean|null TRUE if the operation succeeded |
|
276 | 276 | */ |
277 | 277 | public function replaceFile($fileIdentifier, $localFilePath) |
278 | 278 | { |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | * @param string $sourceFolderIdentifier |
343 | 343 | * @param string $targetFolderIdentifier |
344 | 344 | * @param string $newFolderName |
345 | - * @return bool |
|
345 | + * @return boolean|null |
|
346 | 346 | */ |
347 | 347 | public function copyFolderWithinStorage($sourceFolderIdentifier, $targetFolderIdentifier, $newFolderName) |
348 | 348 | { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | * of processing resources and money) for large files. |
357 | 357 | * |
358 | 358 | * @param string $fileIdentifier |
359 | - * @return string The file contents |
|
359 | + * @return \League\Flysystem\Handler The file contents |
|
360 | 360 | */ |
361 | 361 | public function getFileContents($fileIdentifier) |
362 | 362 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * |
384 | 384 | * @param string $fileName |
385 | 385 | * @param string $folderIdentifier |
386 | - * @return bool |
|
386 | + * @return boolean|null |
|
387 | 387 | */ |
388 | 388 | public function fileExistsInFolder($fileName, $folderIdentifier) |
389 | 389 | { |
@@ -2,9 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace CedricZiel\FalFlysystem\Fal; |
4 | 4 | |
5 | -use League\Flysystem\Adapter\Local; |
|
6 | 5 | use League\Flysystem\AdapterInterface; |
7 | -use League\Flysystem\Config; |
|
8 | 6 | use League\Flysystem\FilesystemInterface; |
9 | 7 | use TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver; |
10 | 8 | use TYPO3\CMS\Core\Resource\ResourceStorage; |