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

View File

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

View File

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