lint container, workflows and composer update (#2591)

This commit is contained in:
Kevin Papst
2021-06-01 19:20:12 +02:00
committed by GitHub
parent 4859ac8ecb
commit c1eb5ba90a
13 changed files with 140 additions and 126 deletions

View File

@@ -200,14 +200,19 @@ abstract class AbstractSpreadsheetRenderer
$sheet->setCellValueByColumnAndRow($column, $row, sprintf('=SUM(%s:%s)', $startCoordinate, $endCoordinate));
}
protected function setRate(Worksheet $sheet, $column, $row, $rate, $currency)
protected function setRateStyle(Worksheet $sheet, $column, $row, $rate, $currency)
{
$sheet->setCellValueByColumnAndRow($column, $row, $rate);
$sheet->getStyleByColumnAndRow($column, $row)->getNumberFormat()->setFormatCode(
sprintf(self::RATE_FORMAT_LEFT, $currency)
);
}
protected function setRate(Worksheet $sheet, $column, $row, $rate, $currency)
{
$sheet->setCellValueByColumnAndRow($column, $row, $rate);
$this->setRateStyle($sheet, $column, $row, $rate, $currency);
}
/**
* @param MetaDisplayEventInterface $event
* @return MetaTableTypeInterface[]