mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix: SA: Fix "...Short ternary operator..." rule.
SA stands for Static Analysis.
This commit is contained in:
@@ -34,6 +34,6 @@ class DocumentCategoryRepository extends EntityRepository
|
||||
'SELECT MAX(c.idInsideBundle) + 1 FROM ChillDocStoreBundle:DocumentCategory c')
|
||||
->getSingleResult();
|
||||
|
||||
return $array_res[1] ?: 0;
|
||||
return reset($array_res);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user