mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -12,10 +12,6 @@ declare(strict_types=1);
|
||||
namespace Chill\MainBundle\Security\Resolver;
|
||||
|
||||
use Chill\MainBundle\Entity\Center;
|
||||
use UnexpectedValueException;
|
||||
|
||||
use function get_class;
|
||||
use function is_array;
|
||||
|
||||
final readonly class CenterResolverManager implements CenterResolverManagerInterface
|
||||
{
|
||||
@@ -38,16 +34,11 @@ final readonly class CenterResolverManager implements CenterResolverManagerInter
|
||||
return [$resolved];
|
||||
}
|
||||
|
||||
if (is_array($resolved)) {
|
||||
if (\is_array($resolved)) {
|
||||
return $resolved;
|
||||
}
|
||||
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'the return type of a %s should be an instance of %s, an array or null. Resolver is %s',
|
||||
CenterResolverInterface::class,
|
||||
Center::class,
|
||||
$resolver::class
|
||||
));
|
||||
throw new \UnexpectedValueException(sprintf('the return type of a %s should be an instance of %s, an array or null. Resolver is %s', CenterResolverInterface::class, Center::class, $resolver::class));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user