mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -78,10 +78,11 @@ class PartListsController extends AbstractController
|
|||
|
||||
if (!$this->isCsrfTokenValid('table_action', $request->request->get('_token'))) {
|
||||
$this->addFlash('error', 'csfr_invalid');
|
||||
|
||||
return $this->redirect($redirect);
|
||||
}
|
||||
|
||||
if ($action === null || $ids === null) {
|
||||
if (null === $action || null === $ids) {
|
||||
$this->addFlash('error', 'part.table.actions.no_params_given');
|
||||
} else {
|
||||
$parts = $actionHandler->idStringToArray($ids);
|
||||
|
@ -93,7 +94,6 @@ class PartListsController extends AbstractController
|
|||
$this->addFlash('success', 'part.table.actions.success');
|
||||
}
|
||||
|
||||
|
||||
return $this->redirect($redirect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue