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 { ...@@ -212,11 +212,14 @@ class Report {
* @throws \CodeException * @throws \CodeException
* @throws \DbException * @throws \DbException
* @throws \DownloadException * @throws \DownloadException
* @throws \UserFormException
* @throws \UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\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) { public function process($bodyText) {
...@@ -421,28 +424,26 @@ class Report { ...@@ -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 * 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 * 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 int $cur_level
* @param array $super_level_array The Value-Array of the indexarray [0=>10, 1=>50] * @param array $super_level_array
* @param int $counter The outer numeric Arraykey of indexarray * @param int $counter
* * @return string
* @return string The content that is displayed on the website
* @throws \CodeException * @throws \CodeException
* @throws \DbException * @throws \DbException
* @throws \DownloadException * @throws \DownloadException
* @throws \UserFormException
* @throws \UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\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) { private function triggerReport($cur_level = 1, array $super_level_array = array(), $counter = 0) {
$keys = array(); $keys = array();
$stat = array(); $stat = array();
$lineDebug = 0;
$content = ""; $content = "";
$rowTotal = 0;
// CurrentLevel "10.10.50" // CurrentLevel "10.10.50"
if (isset($this->indexArray[$counter]) && is_array($this->indexArray[$counter])) { if (isset($this->indexArray[$counter]) && is_array($this->indexArray[$counter])) {
...@@ -514,7 +515,6 @@ class Report { ...@@ -514,7 +515,6 @@ class Report {
$contentLevel .= $this->variables->doVariables($this->frArray[$fullLevel . "." . TOKEN_HEAD]); $contentLevel .= $this->variables->doVariables($this->frArray[$fullLevel . "." . TOKEN_HEAD]);
} }
/////////////////////// ///////////////////////
// Render rows // // Render rows //
/////////////////////// ///////////////////////
...@@ -666,16 +666,14 @@ class Report { ...@@ -666,16 +666,14 @@ class Report {
/** /**
* Render given Twig template with content from $result * Render given Twig template with content from $result
* *
* @param string $twig_template * @param $twig_template
* @param string $result - result from sql querry in mode ROW_KEYS * @param $result
* @param string $keys - Column names given by sql query * @param $keys
* * @return string
* @return string The rendered Twig template
*
* @throws \CodeException * @throws \CodeException
* @throws \Twig\Error\LoaderError * @throws \Twig_Error_Loader
* @throws \Twig\Error\RuntimeError * @throws \Twig_Error_Runtime
* @throws \Twig\Error\SyntaxError * @throws \Twig_Error_Syntax
* @throws \UserFormException * @throws \UserFormException
* @throws \UserReportException * @throws \UserReportException
*/ */
......
Supports Markdown
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