fix: SA: Fix "...Short ternary operator..." rule.

SA stands for Static Analysis.
This commit is contained in:
Pol Dellaiera
2021-11-16 15:14:43 +01:00
parent 5a85d497ab
commit e2a8437807
2 changed files with 1 additions and 6 deletions

View File

@@ -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);
}
}