X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FCreateDoxygen.php;h=1ceb34106e288883b2da123910de68d3e6247549;hb=fd5914011cb5c67b827886a5db0e7760a307ad1d;hp=0196839e3da9269a4c26d6892aa3974067a93c52;hpb=f1e7d97b8cae93e1c77f5a5085880409b01fcdbe;p=friendica.git diff --git a/src/Console/CreateDoxygen.php b/src/Console/CreateDoxygen.php index 0196839e3d..1ceb34106e 100644 --- a/src/Console/CreateDoxygen.php +++ b/src/Console/CreateDoxygen.php @@ -1,11 +1,28 @@ . + * + */ namespace Friendica\Console; /** * Description of CreateDoxygen - * - * @author Hypolite Petovan */ class CreateDoxygen extends \Asika\SimpleConsole\Console { @@ -28,7 +45,7 @@ HELP; return $help; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -56,7 +73,7 @@ HELP; $previous = ""; - foreach ($lines AS $line) { + foreach ($lines as $line) { $line = rtrim(trim($line, "\r")); if (strstr(strtolower($line), "function")) { @@ -105,7 +122,7 @@ HELP; } /** - * @brief Adds a doxygen header + * Adds a doxygen header * * @param string $line The current line of the document * @@ -118,7 +135,7 @@ HELP; $space = substr($line, 0, $length); $block = $space . "/**\n" . - $space . " * @brief \n" . + $space . " * \n" . $space . " *\n"; /**/ @@ -130,7 +147,7 @@ HELP; if ($line != "") { $parameters = explode(",", $line); - foreach ($parameters AS $parameter) { + foreach ($parameters as $parameter) { $parameter = trim($parameter); $splitted = explode("=", $parameter);