mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Apply symplify checkers.
This commit is contained in:
parent
d0b1024d80
commit
349ab706cc
6 changed files with 17 additions and 11 deletions
|
@ -191,9 +191,9 @@ class PartController extends AbstractController
|
|||
|
||||
return $this->render('Parts/edit/edit_part_info.html.twig',
|
||||
[
|
||||
'part' => $part,
|
||||
'part' => $part,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -315,8 +315,8 @@ class PartController extends AbstractController
|
|||
|
||||
return $this->render('Parts/edit/new_part.html.twig',
|
||||
[
|
||||
'part' => $new_part,
|
||||
'part' => $new_part,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -245,7 +245,8 @@ class PartListsController extends AbstractController
|
|||
];
|
||||
|
||||
$table = $dataTable->createFromType(PartsDataTable::class, [
|
||||
'search' => $search, 'search_options' => $search_options,
|
||||
'search' => $search,
|
||||
'search_options' => $search_options,
|
||||
])
|
||||
->handleRequest($request);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue