0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-11 20:25:44 +00:00

code style

This commit is contained in:
Kevin Papst 2024-12-12 20:23:43 +01:00
parent f51f50e4e8
commit c3a4f83e67

View file

@ -773,16 +773,6 @@ abstract class AbstractSpreadsheetRenderer
return $this->getFileResponse($file, $filename->getFilename() . $this->getFileExtension());
}
/**
* @return string
*/
abstract public function getFileExtension(): string;
/**
* @param string $file
* @param string $filename
* @return BinaryFileResponse
*/
protected function getFileResponse(string $file, string $filename): BinaryFileResponse
{
$response = new BinaryFileResponse($file);
@ -795,15 +785,9 @@ abstract class AbstractSpreadsheetRenderer
return $response;
}
/**
* @return string
*/
abstract public function getFileExtension(): string;
abstract protected function getContentType(): string;
/**
* @param Spreadsheet $spreadsheet
* @return string
* @throws \Exception
*/
abstract protected function saveSpreadsheet(Spreadsheet $spreadsheet): string;
}