mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-11 10:19:52 +00:00
fix: SA: Fix "...Variable in isset() is never defined...." rule.
SA stands for Static Analysis.
This commit is contained in:
parent
479f0ce9ed
commit
d382cf35ba
@ -40,11 +40,6 @@ parameters:
|
|||||||
count: 2
|
count: 2
|
||||||
path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
|
path: src/Bundle/ChillMainBundle/CRUD/Controller/ApiController.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Variable \\$entity in isset\\(\\) is never defined\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Chill\\\\MainBundle\\\\CRUD\\\\Routing\\\\CRUDRoutesLoader\\:\\:__construct\\(\\) does not call parent constructor from Symfony\\\\Component\\\\Config\\\\Loader\\\\Loader\\.$#"
|
message: "#^Chill\\\\MainBundle\\\\CRUD\\\\Routing\\\\CRUDRoutesLoader\\:\\:__construct\\(\\) does not call parent constructor from Symfony\\\\Component\\\\Config\\\\Loader\\\\Loader\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
@ -202,7 +202,6 @@ class CRUDController extends AbstractController
|
|||||||
*
|
*
|
||||||
* @param string $action
|
* @param string $action
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @return type
|
|
||||||
*/
|
*/
|
||||||
protected function indexEntityAction($action, Request $request)
|
protected function indexEntityAction($action, Request $request)
|
||||||
{
|
{
|
||||||
@ -213,9 +212,7 @@ class CRUDController extends AbstractController
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($entity)) {
|
|
||||||
$entity = '';
|
$entity = '';
|
||||||
}
|
|
||||||
|
|
||||||
$response = $this->onPostCheckACL($action, $request, $entity);
|
$response = $this->onPostCheckACL($action, $request, $entity);
|
||||||
if ($response instanceof Response) {
|
if ($response instanceof Response) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user