replace empty function

This commit is contained in:
Robin Krahnen 2021-09-16 16:34:00 +02:00
parent 8da32c3969
commit 4164640182

View file

@ -46,7 +46,7 @@ class SequenceCommandController extends CommandController
public function cleanSequenceInsertsCommand(array $typesToClean = []) public function cleanSequenceInsertsCommand(array $typesToClean = [])
{ {
$cleanArray = []; $cleanArray = [];
if (empty($typesToClean)) { if ($typesToClean === []) {
$results = $this->entityManager $results = $this->entityManager
->createQuery('SELECT i.type, MAX(i.number) max_number FROM ' . Insert::class . ' i GROUP BY i.type') ->createQuery('SELECT i.type, MAX(i.number) max_number FROM ' . Insert::class . ' i GROUP BY i.type')
->getScalarResult(); ->getScalarResult();