Commit a7f317e3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Report.php: remove some linefeeds, update phpdoc

parent 4db9bc6e
Pipeline #2379 passed with stages
in 2 minutes and 33 seconds
......@@ -212,11 +212,14 @@ class Report {
* @throws \CodeException
* @throws \DbException
* @throws \DownloadException
* @throws \UserFormException
* @throws \UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
* @throws \UserFormException
* @throws \UserReportException
*/
public function process($bodyText) {
......@@ -421,28 +424,26 @@ class Report {
* If the next Level is a Sublevel it will be executed and $this->counter will be added by 1
* The sublevel calls the method again for a following sublevel
*
* @param int $cur_level Which level it will call [10] = level 1, [10.10] = level 2 ...
* @param array $super_level_array The Value-Array of the indexarray [0=>10, 1=>50]
* @param int $counter The outer numeric Arraykey of indexarray
*
* @return string The content that is displayed on the website
* @param int $cur_level
* @param array $super_level_array
* @param int $counter
* @return string
* @throws \CodeException
* @throws \DbException
* @throws \DownloadException
* @throws \UserFormException
* @throws \UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
* @throws \UserFormException
* @throws \UserReportException
*/
private function triggerReport($cur_level = 1, array $super_level_array = array(), $counter = 0) {
$keys = array();
$stat = array();
$lineDebug = 0;
$content = "";
$rowTotal = 0;
// CurrentLevel "10.10.50"
if (isset($this->indexArray[$counter]) && is_array($this->indexArray[$counter])) {
......@@ -514,7 +515,6 @@ class Report {
$contentLevel .= $this->variables->doVariables($this->frArray[$fullLevel . "." . TOKEN_HEAD]);
}
///////////////////////
// Render rows //
///////////////////////
......@@ -666,16 +666,14 @@ class Report {
/**
* Render given Twig template with content from $result
*
* @param string $twig_template
* @param string $result - result from sql querry in mode ROW_KEYS
* @param string $keys - Column names given by sql query
*
* @return string The rendered Twig template
*
* @param $twig_template
* @param $result
* @param $keys
* @return string
* @throws \CodeException
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
* @throws \Twig_Error_Loader
* @throws \Twig_Error_Runtime
* @throws \Twig_Error_Syntax
* @throws \UserFormException
* @throws \UserReportException
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment