diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2021-12-06 17:10:51 +0300 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2021-12-06 17:10:59 +0300 |
commit | c4cb6f6e6fcf34ee7d259186ec656bb687776434 (patch) | |
tree | e89717076d0ba5a4567ce00e71770890050e903f | |
parent | 476462dfb7479cff39d11a3936d28f20b2475a5f (diff) |
Improve type hints
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-rw-r--r-- | lib/Command/Generate.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Command/Generate.php b/lib/Command/Generate.php index 7e7663c..f60fa06 100644 --- a/lib/Command/Generate.php +++ b/lib/Command/Generate.php @@ -44,8 +44,8 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Generate extends Command { - - /** @var GlobalStoragesService */ + + /** @var ?GlobalStoragesService */ protected $globalService; /** @var IUserManager */ @@ -74,7 +74,7 @@ class Generate extends Command { IPreview $previewGenerator, IConfig $config, IManager $encryptionManager, - GlobalStoragesService $globalService = null) { + ?GlobalStoragesService $globalService = null) { parent::__construct(); $this->userManager = $userManager; @@ -139,7 +139,7 @@ class Generate extends Command { return 0; } - private function getNoPreviewMountPaths(IUser $user) { + private function getNoPreviewMountPaths(IUser $user): array { if ($this->globalService === null) { return []; } @@ -181,7 +181,7 @@ class Generate extends Command { $this->parseFolder($userFolder, $noPreviewMountPaths); } - private function parseFolder(Folder $folder, $noPreviewMountPaths) { + private function parseFolder(Folder $folder, array $noPreviewMountPaths): void { try { $folderPath = $folder->getPath(); |