diff --git a/extension/Source/core/helper/HelperFile.php b/extension/Source/core/helper/HelperFile.php index 5f7e89464c0003cab4e602c9df31cb524e192b8a..6eb7a14ad640b8f3c167b6f18d033459274a8d73 100644 --- a/extension/Source/core/helper/HelperFile.php +++ b/extension/Source/core/helper/HelperFile.php @@ -20,6 +20,7 @@ class HelperFile { * Iterate over array $files. Delete only named files which are stored in '/tmp/' . DOWNLOAD_FILE_PREFIX. * * @param array $files + * @throws CodeException * @throws UserFormException */ public static function cleanTempFiles(array $files) { @@ -63,6 +64,8 @@ class HelperFile { * Creates a temporary directory. * Be aware: '/tmp' is under systemd/apache2 (Ubuntu 18...) remapped to something like: '/tmp/systemd-private-...-apache2.service-.../tmp' * + * @return bool|string + * @throws CodeException * @throws UserFormException */ public static function mktempdir() { @@ -111,7 +114,7 @@ class HelperFile { return array(); } - $pathFileName = self::correctRelativPathFileName($pathFileName); + $pathFileName = self::correctRelativePathFileName($pathFileName); if (!file_exists($pathFileName)) { return array(); @@ -129,7 +132,7 @@ class HelperFile { * @param $pathFileName * @return string */ - public static function correctRelativPathFileName($pathFileName) { + public static function correctRelativePathFileName($pathFileName) { if (empty($pathFileName)) { return ''; @@ -283,6 +286,7 @@ class HelperFile { * @param $filename * @param string $logFilename * @return string + * @throws CodeException * @throws UserFormException */ public static function unlink($filename, $logFilename = '') { diff --git a/extension/Source/core/helper/Support.php b/extension/Source/core/helper/Support.php index ec901d6a59c35ce63748d83a921d6017cfab00c3..6bbc98ac65c4e11ed6eb804cb83292da9d834649 100644 --- a/extension/Source/core/helper/Support.php +++ b/extension/Source/core/helper/Support.php @@ -1259,6 +1259,7 @@ class Support { * @param $pathFileName * @param bool $overwrite * @param bool|int $chmodDir , 'false' if not change + * @throws CodeException * @throws UserFormException */ public static function moveFile($srcFile, $pathFileName, $overwrite, $chmodDir = false) { diff --git a/extension/Source/core/store/Config.php b/extension/Source/core/store/Config.php index 6ca346320f89f87d4bfc8651ce9755680c8cf8c0..67c43480a3d684f648a5acac9bc513dac6de5705 100644 --- a/extension/Source/core/store/Config.php +++ b/extension/Source/core/store/Config.php @@ -189,6 +189,7 @@ class Config { /** * @param array $config + * @throws CodeException * @throws UserFormException * @throws UserReportException */ @@ -243,6 +244,7 @@ class Config { /** * @param array $config * @param string $reason + * @throws CodeException * @throws UserFormException * @throws UserReportException */