Skip to content

Commit

Permalink
fix(zms-1500): fixed code quality errors
Browse files Browse the repository at this point in the history
  • Loading branch information
msfb3 committed Feb 14, 2025
1 parent a1ce6b7 commit d351f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions zmsstatistic/src/Zmsstatistic/Download/RequestReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ public function writeReportData(ReportEntity $report, $sheet, $datePatternCol1,
$reportData = [];
$rowIndex = $sheet->getHighestRow() + 1;
$firstDataRow = $rowIndex;
$sheet->setCellValue('A20', "firstDataRow: " . $firstDataRow);

foreach ($report->data as $name => $entry) {
if ($name !== 'sum' && $name !== 'average_processingtime') {
$rowData = [];
$rowData[] = $name;
$rowData[] = isset($report->data['average_processingtime'][$name]) && is_numeric($report->data['average_processingtime'][$name])
$rowData[] = isset($report->data['average_processingtime'][$name])
&& is_numeric($report->data['average_processingtime'][$name])
? (string)$report->data['average_processingtime'][$name]
: "0";
$rowData[] = $report->data['sum'][$name];
Expand Down
2 changes: 1 addition & 1 deletion zmsstatistic/src/Zmsstatistic/ReportRequestIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function readResponse(
$args['organisation'] = $this->organisation;
return (new Download\RequestReport(\App::$slim->getContainer()))->readResponse($request, $response, $args);
}

return Render::withHtml(
$response,
'page/reportRequestIndex.twig',
Expand Down

0 comments on commit d351f61

Please sign in to comment.