diff options
-rw-r--r-- | controller/pagecontroller.php | 2 | ||||
-rw-r--r-- | environment/environment.php | 2 | ||||
-rw-r--r-- | preview/preview.php | 2 | ||||
-rw-r--r-- | service/configservice.php | 8 | ||||
-rw-r--r-- | service/thumbnailservice.php | 2 |
5 files changed, 7 insertions, 9 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index 9eaf614d..83172d5e 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -210,7 +210,7 @@ class PageController extends Controller { /** * Determines if we can add external shared to this instance * - * @return array + * @return array<bool,string> */ private function getServer2ServerProperties() { $server2ServerSharing = $this->appConfig->getAppValue( diff --git a/environment/environment.php b/environment/environment.php index d9569096..c0ce95f3 100644 --- a/environment/environment.php +++ b/environment/environment.php @@ -84,7 +84,7 @@ class Environment { */ private $folderName; /** - * @var string + * @var string|null */ private $sharePassword; diff --git a/preview/preview.php b/preview/preview.php index 25c0c5b0..014722fd 100644 --- a/preview/preview.php +++ b/preview/preview.php @@ -295,7 +295,7 @@ class Preview { * @param int $maxWidth * @param int $maxHeight * - * @return array + * @return array<int,double> */ private function calculateNewDimensions($previewWidth, $previewHeight, $maxWidth, $maxHeight) { if (($previewWidth / $previewHeight) >= ($maxWidth / $maxHeight)) { diff --git a/service/configservice.php b/service/configservice.php index 4adce4b9..f96c351d 100644 --- a/service/configservice.php +++ b/service/configservice.php @@ -66,7 +66,7 @@ class ConfigService extends FilesService { /** * Returns a list of supported features * - * @return array + * @return string[] */ public function getFeaturesList() { $featuresList = []; @@ -193,14 +193,12 @@ class ConfigService extends FilesService { /** * Builds the error message to send back when there is an error * - * @fixme Missing translation + * @fixme Missing translation and should not contain HTML * * @param ServiceException $exception * @param Folder $folder * - * @return array <null|array<string,string>,bool> - * @internal param $array <string,bool> $configItems - * + * @return array<array<string,string>,bool> */ private function buildErrorMessage($exception, $folder) { $configPath = $this->environment->getPathFromVirtualRoot($folder); diff --git a/service/thumbnailservice.php b/service/thumbnailservice.php index 0d24cdef..ef220bd1 100644 --- a/service/thumbnailservice.php +++ b/service/thumbnailservice.php @@ -38,7 +38,7 @@ class ThumbnailService { * @param bool $square * @param double $scale * - * @return array<int|double|boolean> + * @return array<double|boolean> */ public function getThumbnailSpecs($square, $scale) { $height = 200 * $scale; |