design anpassung
This commit is contained in:
@@ -16,7 +16,7 @@ final class RfidService
|
||||
public function createDevice(int $tenantId, string $name, ?string $location, int $actorUserId): string
|
||||
{
|
||||
if (trim($name) === '') {
|
||||
throw new RuntimeException('Bitte einen Geraetenamen angeben.');
|
||||
throw new RuntimeException('Bitte einen Namen für den Kartenleser angeben.');
|
||||
}
|
||||
|
||||
$token = bin2hex(random_bytes(20));
|
||||
@@ -52,7 +52,7 @@ final class RfidService
|
||||
]);
|
||||
|
||||
if (!$memberStatement->fetchColumn()) {
|
||||
throw new RuntimeException('Das ausgewaehlte Mitglied ist fuer RFID nicht verfuegbar.');
|
||||
throw new RuntimeException('Das ausgewählte Mitglied ist für Karten nicht verfügbar.');
|
||||
}
|
||||
|
||||
$statement = $this->pdo->prepare(
|
||||
@@ -89,11 +89,11 @@ final class RfidService
|
||||
$device = $deviceStatement->fetch();
|
||||
|
||||
if (!$device) {
|
||||
throw new RuntimeException('Das RFID-Geraet ist unbekannt.');
|
||||
throw new RuntimeException('Der Kartenleser ist unbekannt.');
|
||||
}
|
||||
|
||||
if (($device['status'] ?? '') !== 'active') {
|
||||
throw new RuntimeException('Das RFID-Geraet ist nicht aktiv.');
|
||||
throw new RuntimeException('Der Kartenleser ist nicht aktiv.');
|
||||
}
|
||||
|
||||
$status = 'received';
|
||||
|
||||
Reference in New Issue
Block a user