Skip to content
Snippets Groups Projects
Commit 338974b0 authored by Carsten  Rose's avatar Carsten Rose
Browse files

phpDoc updated

parent be41d819
No related branches found
No related tags found
No related merge requests found
Pipeline #1673 failed
...@@ -20,6 +20,7 @@ class HelperFile { ...@@ -20,6 +20,7 @@ class HelperFile {
* Iterate over array $files. Delete only named files which are stored in '/tmp/' . DOWNLOAD_FILE_PREFIX. * Iterate over array $files. Delete only named files which are stored in '/tmp/' . DOWNLOAD_FILE_PREFIX.
* *
* @param array $files * @param array $files
* @throws CodeException
* @throws UserFormException * @throws UserFormException
*/ */
public static function cleanTempFiles(array $files) { public static function cleanTempFiles(array $files) {
...@@ -63,6 +64,8 @@ class HelperFile { ...@@ -63,6 +64,8 @@ class HelperFile {
* Creates a temporary directory. * Creates a temporary directory.
* Be aware: '/tmp' is under systemd/apache2 (Ubuntu 18...) remapped to something like: '/tmp/systemd-private-...-apache2.service-.../tmp' * 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 * @throws UserFormException
*/ */
public static function mktempdir() { public static function mktempdir() {
...@@ -111,7 +114,7 @@ class HelperFile { ...@@ -111,7 +114,7 @@ class HelperFile {
return array(); return array();
} }
$pathFileName = self::correctRelativPathFileName($pathFileName); $pathFileName = self::correctRelativePathFileName($pathFileName);
if (!file_exists($pathFileName)) { if (!file_exists($pathFileName)) {
return array(); return array();
...@@ -129,7 +132,7 @@ class HelperFile { ...@@ -129,7 +132,7 @@ class HelperFile {
* @param $pathFileName * @param $pathFileName
* @return string * @return string
*/ */
public static function correctRelativPathFileName($pathFileName) { public static function correctRelativePathFileName($pathFileName) {
if (empty($pathFileName)) { if (empty($pathFileName)) {
return ''; return '';
...@@ -283,6 +286,7 @@ class HelperFile { ...@@ -283,6 +286,7 @@ class HelperFile {
* @param $filename * @param $filename
* @param string $logFilename * @param string $logFilename
* @return string * @return string
* @throws CodeException
* @throws UserFormException * @throws UserFormException
*/ */
public static function unlink($filename, $logFilename = '') { public static function unlink($filename, $logFilename = '') {
......
...@@ -1259,6 +1259,7 @@ class Support { ...@@ -1259,6 +1259,7 @@ class Support {
* @param $pathFileName * @param $pathFileName
* @param bool $overwrite * @param bool $overwrite
* @param bool|int $chmodDir , 'false' if not change * @param bool|int $chmodDir , 'false' if not change
* @throws CodeException
* @throws UserFormException * @throws UserFormException
*/ */
public static function moveFile($srcFile, $pathFileName, $overwrite, $chmodDir = false) { public static function moveFile($srcFile, $pathFileName, $overwrite, $chmodDir = false) {
......
...@@ -189,6 +189,7 @@ class Config { ...@@ -189,6 +189,7 @@ class Config {
/** /**
* @param array $config * @param array $config
* @throws CodeException
* @throws UserFormException * @throws UserFormException
* @throws UserReportException * @throws UserReportException
*/ */
...@@ -243,6 +244,7 @@ class Config { ...@@ -243,6 +244,7 @@ class Config {
/** /**
* @param array $config * @param array $config
* @param string $reason * @param string $reason
* @throws CodeException
* @throws UserFormException * @throws UserFormException
* @throws UserReportException * @throws UserReportException
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment