mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-01 02:49:42 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Chill\MainBundle\Security\Resolver;
|
||||
|
||||
use Chill\MainBundle\Entity\HasCenterInterface;
|
||||
use Chill\MainBundle\Entity\HasCentersInterface;
|
||||
use UnexpectedValueException;
|
||||
|
||||
class DefaultCenterResolver implements CenterResolverInterface
|
||||
{
|
||||
@@ -24,7 +23,6 @@ class DefaultCenterResolver implements CenterResolverInterface
|
||||
|
||||
/**
|
||||
* @param HasCenterInterface $entity
|
||||
* @param array $options
|
||||
*/
|
||||
public function resolveCenter($entity, ?array $options = [])
|
||||
{
|
||||
@@ -36,7 +34,7 @@ class DefaultCenterResolver implements CenterResolverInterface
|
||||
return $entity->getCenters();
|
||||
}
|
||||
|
||||
throw new UnexpectedValueException('should be an instanceof');
|
||||
throw new \UnexpectedValueException('should be an instanceof');
|
||||
}
|
||||
|
||||
public function supports($entity, ?array $options = []): bool
|
||||
|
Reference in New Issue
Block a user