code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 20:24:38 +00:00
parent 45ae07b0ac
commit 9a49bc34f1
6 changed files with 9 additions and 10 deletions

View File

@ -473,7 +473,6 @@ final class BackendController extends Controller
$view->data['units'] = UnitMapper::getAll()
->execute();
/** @var \Modules\Attribute\Models\AttributeType[] */
$view->data['attributeTypes'] = VehicleAttributeTypeMapper::getAll()
->with('l11n')
->where('l11n/language', $response->header->l11n->language)
@ -552,7 +551,6 @@ final class BackendController extends Controller
->limit(1)
->execute();
/** @var \Modules\Attribute\Models\AttributeType[] */
$view->data['attributeTypes'] = DriverAttributeTypeMapper::getAll()
->with('l11n')
->where('l11n/language', $response->header->l11n->language)

View File

@ -55,6 +55,11 @@ class Driver
public array $inspections = [];
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->account = new NullAccount();

View File

@ -40,7 +40,7 @@ return ['FleetManagement' => [
'Responsible' => 'Verantwortlich',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'VIN' => 'VIN',
'Type' => 'Typ',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Fahrzeuge',

View File

@ -40,7 +40,7 @@ return ['FleetManagement' => [
'Responsible' => 'Responsible',
'Start' => 'Start',
'Status' => 'Status',
'VIN' => 'VIN',
'VIN' => 'VIN',
'Type' => 'Type',
'Upcoming' => 'Upcoming',
'Vehicles' => 'Vehicles',

View File

@ -12,6 +12,4 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
echo $this->data['nav']->render(); ?>
echo $this->data['nav']->render();

View File

@ -12,6 +12,4 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
echo $this->data['nav']->render(); ?>
echo $this->data['nav']->render();