mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-20 04:38:07 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -14,8 +14,6 @@ namespace Chill\PersonBundle\DataFixtures\Helper;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
use function random_int;
|
||||
|
||||
trait RandomPersonHelperTrait
|
||||
{
|
||||
private ?int $nbOfPersons = null;
|
||||
@@ -36,7 +34,7 @@ trait RandomPersonHelperTrait
|
||||
return $qb
|
||||
->select('p')
|
||||
->setMaxResults(1)
|
||||
->setFirstResult(random_int(0, $this->nbOfPersons))
|
||||
->setFirstResult(\random_int(0, $this->nbOfPersons))
|
||||
->getQuery()
|
||||
->getSingleResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user