mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -17,12 +17,10 @@ use Chill\PersonBundle\Entity\Relationships\Relation;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use function array_rand;
|
||||
use function json_encode;
|
||||
use function random_int;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class RelationshipApiControllerTest extends WebTestCase
|
||||
@@ -63,7 +61,7 @@ final class RelationshipApiControllerTest extends WebTestCase
|
||||
->setParameter('name', 'Center A')
|
||||
->getQuery()
|
||||
->setMaxResults(1)
|
||||
->setFirstResult(random_int(0, $countPersons - 1))
|
||||
->setFirstResult(\random_int(0, $countPersons - 1))
|
||||
->getSingleResult();
|
||||
|
||||
self::ensureKernelShutdown();
|
||||
@@ -96,7 +94,7 @@ final class RelationshipApiControllerTest extends WebTestCase
|
||||
->setParameter('name', 'Center A')
|
||||
->getQuery()
|
||||
->setMaxResults(2)
|
||||
->setFirstResult(random_int(0, $countPersons - 1))
|
||||
->setFirstResult(\random_int(0, $countPersons - 1))
|
||||
->getResult();
|
||||
|
||||
self::ensureKernelShutdown();
|
||||
@@ -132,7 +130,7 @@ final class RelationshipApiControllerTest extends WebTestCase
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
json_encode([
|
||||
\json_encode([
|
||||
'type' => 'relationship',
|
||||
'fromPerson' => ['id' => $fromPersonId, 'type' => 'person'],
|
||||
'toPerson' => ['id' => $toPersonId, 'type' => 'person'],
|
||||
@@ -152,6 +150,6 @@ final class RelationshipApiControllerTest extends WebTestCase
|
||||
->findAll();
|
||||
}
|
||||
|
||||
return $this->relations[array_rand($this->relations)];
|
||||
return $this->relations[\array_rand($this->relations)];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user