diff --git a/src/DependencyInjection/Compiler/TwigPathPass.php b/src/DependencyInjection/Compiler/TwigPathPass.php index 8be9814..36cf7f6 100644 --- a/src/DependencyInjection/Compiler/TwigPathPass.php +++ b/src/DependencyInjection/Compiler/TwigPathPass.php @@ -3,7 +3,6 @@ namespace AlterPHP\EasyAdminExtensionBundle\DependencyInjection\Compiler; use AlterPHP\EasyAdminExtensionBundle\EasyAdminExtensionBundle; -use EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -29,7 +28,7 @@ public function process(ContainerBuilder $container) // Put back user default path $twigDefaultPath = $container->getParameterBag()->resolveValue('%twig.default_path%'); $userDefaultPath = $twigDefaultPath.'/bundles/EasyAdminMongoOdmBundle/'; - if (file_exists($userDefaultPath)) { + if (\file_exists($userDefaultPath)) { $twigLoaderFilesystemDefinition->addMethodCall( 'prependPath', [$userDefaultPath, 'EasyAdminMongoOdm'] diff --git a/src/EventListener/AbstractPostQueryBuilderSubscriber.php b/src/EventListener/AbstractPostQueryBuilderSubscriber.php index ef53e2e..04ac3d3 100644 --- a/src/EventListener/AbstractPostQueryBuilderSubscriber.php +++ b/src/EventListener/AbstractPostQueryBuilderSubscriber.php @@ -16,7 +16,7 @@ abstract class AbstractPostQueryBuilderSubscriber implements EventSubscriberInte /** * Tests if $queryBuilder is supported. * - * @param object $queryBuilder + * @param object $queryBuilder * * @return bool */ diff --git a/src/EventListener/PostQueryBuilderSubscriber.php b/src/EventListener/PostQueryBuilderSubscriber.php index 27f32b2..89777d4 100644 --- a/src/EventListener/PostQueryBuilderSubscriber.php +++ b/src/EventListener/PostQueryBuilderSubscriber.php @@ -2,10 +2,9 @@ namespace AlterPHP\EasyAdminExtensionBundle\EventListener; -use AlterPHP\EasyAdminExtensionBundle\EventListener\AbstractPostQueryBuilderSubscriber; use AlterPHP\EasyAdminExtensionBundle\Model\ListFilter; -use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\Query\QueryException; +use Doctrine\ORM\QueryBuilder; use EasyCorp\Bundle\EasyAdminBundle\Event\EasyAdminEvents; /**