diff --git a/src/Controller/EasyAdminController.php b/src/Controller/EasyAdminController.php index 391d087..256b795 100644 --- a/src/Controller/EasyAdminController.php +++ b/src/Controller/EasyAdminController.php @@ -29,7 +29,7 @@ protected function embeddedListAction() $fields = \array_filter( $this->entity['list']['fields'], function ($name) use ($hiddenFields) { - return !in_array($name, $hiddenFields); + return !\in_array($name, $hiddenFields); }, ARRAY_FILTER_USE_KEY ); diff --git a/src/DependencyInjection/EasyAdminExtensionExtension.php b/src/DependencyInjection/EasyAdminExtensionExtension.php index e0ffde9..5712c98 100644 --- a/src/DependencyInjection/EasyAdminExtensionExtension.php +++ b/src/DependencyInjection/EasyAdminExtensionExtension.php @@ -2,7 +2,6 @@ namespace AlterPHP\EasyAdminExtensionBundle\DependencyInjection; -use EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; @@ -58,7 +57,7 @@ public function prepend(ContainerBuilder $container) // @see https://github.com/symfony/symfony/pull/30527 // Put back user default path $userDefaultPath = $twigDefaultPath.'/bundles/EasyAdminBundle/'; - if (file_exists($userDefaultPath)) { + if (\file_exists($userDefaultPath)) { $paths[$userDefaultPath] = 'EasyAdmin'; } diff --git a/src/Form/Type/Extension/EasyAdminAutocompleteTypeExtension.php b/src/Form/Type/Extension/EasyAdminAutocompleteTypeExtension.php index d671db4..7674a81 100644 --- a/src/Form/Type/Extension/EasyAdminAutocompleteTypeExtension.php +++ b/src/Form/Type/Extension/EasyAdminAutocompleteTypeExtension.php @@ -23,7 +23,7 @@ public function __construct(RouterInterface $router, TranslatorInterface $transl public function getExtendedType() { $extendedTypes = static::getExtendedTypes(); - $extendedType = reset($extendedTypes); + $extendedType = \reset($extendedTypes); return $extendedType; }