PSR 2 compliance

This commit is contained in:
Simon Vieille 2021-03-17 20:42:36 +01:00
parent 3bf4a1460e
commit 9032faa4e8
2 changed files with 4 additions and 1 deletions

View file

@ -97,7 +97,7 @@ class PostAdminController extends AdminController
/**
* @Route("/show/{entity}", name="admin_blog_post_show")
*/
public function show(Entity $entity, PostRepositoryQuery $postQuery): Response
public function show(Entity $entity): Response
{
return $this->render('blog/post_admin/show.html.twig', [
'entity' => $entity,

View file

@ -2,6 +2,7 @@
namespace App\Entity\Blog;
use App\Doctrine\Timestampable;
use App\Entity\EntityInterface;
use App\Repository\Blog\CategoryRepository;
use Doctrine\Common\Collections\ArrayCollection;
@ -14,6 +15,8 @@ use Doctrine\ORM\Mapping as ORM;
*/
class Category implements EntityInterface
{
use Timestampable;
/**
* @ORM\Id
* @ORM\GeneratedValue