Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Oct 14, 2021
1 parent 981158b commit 0332ab3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Renderer/TableRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ public function __construct(Environment $templating)

public function render(ReportInterface $report, Data $data): string
{
if ([] !== $data->getData()) {
/** @var array $labels */
$labels = $data->getLabels();
/** @var array $values */
$values = $data->getData();

if (count($values) > 0) {
$data = [
'report' => $report,
'values' => $data->getData(),
'labels' => $data->getLabels(),
'values' => $values,
'labels' => $labels,
];

$rendererConfiguration = $report->getRendererConfiguration();
Expand Down

0 comments on commit 0332ab3

Please sign in to comment.