design anpassung
This commit is contained in:
@@ -271,7 +271,7 @@ final class ExportService
|
||||
private function assertTenantId(int $tenantId): void
|
||||
{
|
||||
if ($tenantId <= 0) {
|
||||
throw new RuntimeException('Die Tenant-ID muss groesser als 0 sein.');
|
||||
throw new RuntimeException('Die Standort-ID muss größer als 0 sein.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ final class ExportService
|
||||
private function openCsvOutput(string $filename)
|
||||
{
|
||||
if (headers_sent($file, $line)) {
|
||||
throw new RuntimeException(sprintf('CSV-Header koennen nicht mehr gesendet werden (%s:%d).', $file, $line));
|
||||
throw new RuntimeException(sprintf('Export-Header können nicht mehr gesendet werden (%s:%d).', $file, $line));
|
||||
}
|
||||
|
||||
$safeFilename = $this->sanitizeFilename($filename);
|
||||
@@ -299,7 +299,7 @@ final class ExportService
|
||||
$handle = fopen('php://output', 'wb');
|
||||
|
||||
if ($handle === false) {
|
||||
throw new RuntimeException('php://output konnte nicht geoeffnet werden.');
|
||||
throw new RuntimeException('Die Exportausgabe konnte nicht geöffnet werden.');
|
||||
}
|
||||
|
||||
fwrite($handle, "\xEF\xBB\xBF");
|
||||
@@ -330,7 +330,7 @@ final class ExportService
|
||||
}, $row);
|
||||
|
||||
if (fputcsv($handle, $values, self::CSV_DELIMITER) === false) {
|
||||
throw new RuntimeException('Die CSV-Zeile konnte nicht geschrieben werden.');
|
||||
throw new RuntimeException('Die Exportzeile konnte nicht geschrieben werden.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user