From bf396cfb41313d16000a6067e0d726a654cbb1fe Mon Sep 17 00:00:00 2001 From: Thomas BACCELLI Date: Tue, 9 Feb 2021 10:19:38 +0100 Subject: [PATCH] Fix phpstan --- classes/Log/Logger.php | 6 +++--- classes/ZipAction.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/classes/Log/Logger.php b/classes/Log/Logger.php index 9919f7693..df24b581f 100644 --- a/classes/Log/Logger.php +++ b/classes/Log/Logger.php @@ -96,7 +96,7 @@ public function warning($message, array $context = array()) * Equivalent of the old $nextErrors * Used during upgrade. Will be displayed in the top right panel (not visible at the beginning). * - * @var array Details of error which occured during the request. Verbose levels: ERROR + * @return array Details of error which occured during the request. Verbose levels: ERROR */ public function getErrors() { @@ -107,7 +107,7 @@ public function getErrors() * Equivalent of the old $nextQuickInfo * Used during upgrade. Will be displayed in the lower panel. * - * @var array Details on what happened during the execution. Verbose levels: DEBUG / INFO / WARNING + * @return array Details on what happened during the execution. Verbose levels: DEBUG / INFO / WARNING */ public function getInfos() { @@ -119,7 +119,7 @@ public function getInfos() * Equivalent of the old $next_desc * Used during upgrade. Will be displayed on the top left panel. * - * @var string Stores the main information about the current step + * @return string Stores the main information about the current step */ public function getLastInfo() { diff --git a/classes/ZipAction.php b/classes/ZipAction.php index 520989c5c..8d019bd6b 100644 --- a/classes/ZipAction.php +++ b/classes/ZipAction.php @@ -64,7 +64,7 @@ public function __construct($translator, LoggerInterface $logger, UpgradeConfigu * Add files to an archive. * Note the number of files added can be limited. * - * @var array List of files to add + * @var array $filesList List of files to add * @var string $toFile */ public function compress(&$filesList, $toFile) @@ -174,7 +174,7 @@ public function extract($from_file, $to_dir) /** * Lists the files present in the given archive * - * @var string Path to the file + * @var string $zipfile Path to the file * * @return array */ @@ -202,7 +202,7 @@ public function listContent($zipfile) /** * Get the path of a file from the archive root * - * @var string Path of the file on the filesystem + * @var string $filepath Path of the file on the filesystem * * @return string Path of the file in the backup archive */ @@ -214,7 +214,7 @@ private function getFilepathInArchive($filepath) /** * Checks a file size matches the given limits * - * @var string Path to a file + * @var string $filepath Path to a file * * @return bool Size is inside the maximum limit */ @@ -239,8 +239,8 @@ private function isFileWithinFileSizeLimit($filepath) /** * Open an archive * - * @var string Path to the archive - * @var int ZipArchive flags + * @var string $zipFile Path to the archive + * @var int $flags ZipArchive flags * * @return false|\ZipArchive */