mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-05-11 20:25:44 +00:00
code style
This commit is contained in:
parent
f51f50e4e8
commit
c3a4f83e67
1 changed files with 2 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue