PSR 2 compliance

This commit is contained in:
Simon Vieille 2021-03-22 12:43:13 +01:00
parent 633e16771a
commit d6dc699dfe
12 changed files with 14 additions and 25 deletions

View File

@ -3,10 +3,10 @@
namespace App\Controller\Blog;
use App\Core\Controller\Admin\AdminController;
use App\Core\Manager\EntityManager;
use App\Entity\Blog\Category as Entity;
use App\Factory\Blog\CategoryFactory as EntityFactory;
use App\Form\Blog\CategoryType as EntityType;
use App\Core\Manager\EntityManager;
use App\Repository\Blog\CategoryRepositoryQuery as RepositoryQuery;
use App\Repository\Blog\PostRepositoryQuery;
use Symfony\Component\HttpFoundation\Request;

View File

@ -3,11 +3,11 @@
namespace App\Controller\Blog;
use App\Core\Controller\Admin\AdminController;
use App\Core\Form\FileUploadHandler;
use App\Core\Manager\EntityManager;
use App\Entity\Blog\Post as Entity;
use App\Factory\Blog\PostFactory as EntityFactory;
use App\Form\Blog\PostType as EntityType;
use App\Core\Form\FileUploadHandler;
use App\Core\Manager\EntityManager;
use App\Repository\Blog\PostRepositoryQuery as RepositoryQuery;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

View File

@ -3,11 +3,11 @@
namespace App\Entity\Blog;
use App\Core\Doctrine\Timestampable;
use App\Core\Entity\EntityInterface;
use App\Repository\Blog\CategoryRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use App\Core\Entity\EntityInterface;
/**
* @ORM\Entity(repositoryClass=CategoryRepository::class)

View File

@ -3,12 +3,12 @@
namespace App\Entity\Blog;
use App\Core\Doctrine\Timestampable;
use App\Core\Entity\EntityInterface;
use App\Entity\User;
use App\Repository\Blog\PostRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use App\Core\Entity\EntityInterface;
/**
* @ORM\Entity(repositoryClass=PostRepository::class)

View File

@ -4,11 +4,11 @@ namespace App\Entity\Page;
use App\Core\Entity\Site\Page\Block;
use App\Core\Entity\Site\Page\Page;
use App\Core\Form\Site\Page\FileBlockType;
use App\Core\Form\Site\Page\TextareaBlockType;
use App\Core\Form\Site\Page\TextBlockType;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Form\FormBuilderInterface;
use App\Core\Form\Site\Page\FileBlockType;
use App\Core\Form\Site\Page\TextBlockType;
use App\Core\Form\Site\Page\TextareaBlockType;
/**
* @ORM\Entity

View File

@ -3,14 +3,14 @@
namespace App\Entity;
use App\Core\Doctrine\Timestampable;
use App\Core\Entity\EntityInterface;
use App\Entity\Blog\Post;
use App\Repository\UserRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Scheb\TwoFactorBundle\Model\Google\TwoFactorInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use App\Core\Entity\EntityInterface;
use App\Entity\Blog\Post;
/**
* @ORM\Entity(repositoryClass=UserRepository::class)

View File

@ -2,10 +2,10 @@
namespace App\EventSuscriber\Blog;
use App\Entity\Blog\Post;
use App\Core\Entity\EntityInterface;
use App\Core\Event\EntityManager\EntityManagerEvent;
use App\Core\EventSuscriber\EntityManagerEventSubscriber;
use App\Entity\Blog\Post;
use App\Repository\Blog\PostRepositoryQuery;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;

View File

@ -2,9 +2,6 @@
namespace App\Factory;
use App\Entity\User;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
use Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface;
use App\Core\Factory\UserFactory as BaseUserFactory;
/**

View File

@ -2,14 +2,6 @@
namespace App\Form;
use App\Entity\User;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\Email;
use App\Core\Form\UserType as BaseUserType;
class UserType extends BaseUserType

View File

@ -2,8 +2,8 @@
namespace App\Repository\Blog;
use Knp\Component\Pager\PaginatorInterface;
use App\Core\Repository\RepositoryQuery;
use Knp\Component\Pager\PaginatorInterface;
/**
* class CategoryRepositoryQuery.

View File

@ -2,10 +2,10 @@
namespace App\Repository\Blog;
use App\Core\Repository\RepositoryQuery;
use App\Entity\Blog\Category;
use App\Entity\User;
use Knp\Component\Pager\PaginatorInterface;
use App\Core\Repository\RepositoryQuery;
/**
* class PostRepositoryQuery.

View File

@ -2,8 +2,8 @@
namespace App\Repository;
use Knp\Component\Pager\PaginatorInterface;
use App\Core\Repository\RepositoryQuery;
use Knp\Component\Pager\PaginatorInterface;
/**
* class UserRepositoryQuery.