mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
update php-cs-fixer and rector + fix rules
This commit is contained in:
@@ -25,9 +25,8 @@ use Symfony\Component\Routing\Annotation\Route;
|
||||
*/
|
||||
class DocumentCategoryController extends AbstractController
|
||||
{
|
||||
public function __construct(private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry) {}
|
||||
|
||||
/**
|
||||
* @Route("/{bundleId}/{idInsideBundle}", name="document_category_delete", methods="DELETE")
|
||||
*/
|
||||
@@ -35,7 +34,7 @@ class DocumentCategoryController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
$documentCategory = $em
|
||||
->getRepository(\Chill\DocStoreBundle\Entity\DocumentCategory::class)
|
||||
->getRepository(DocumentCategory::class)
|
||||
->findOneBy(
|
||||
['bundleId' => $bundleId, 'idInsideBundle' => $idInsideBundle]
|
||||
);
|
||||
@@ -55,7 +54,7 @@ class DocumentCategoryController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
$documentCategory = $em
|
||||
->getRepository(\Chill\DocStoreBundle\Entity\DocumentCategory::class)
|
||||
->getRepository(DocumentCategory::class)
|
||||
->findOneBy(
|
||||
['bundleId' => $bundleId, 'idInsideBundle' => $idInsideBundle]
|
||||
);
|
||||
@@ -138,7 +137,7 @@ class DocumentCategoryController extends AbstractController
|
||||
{
|
||||
$em = $this->managerRegistry->getManager();
|
||||
$documentCategory = $em
|
||||
->getRepository(\Chill\DocStoreBundle\Entity\DocumentCategory::class)
|
||||
->getRepository(DocumentCategory::class)
|
||||
->findOneBy(
|
||||
['bundleId' => $bundleId, 'idInsideBundle' => $idInsideBundle]
|
||||
);
|
||||
|
@@ -41,7 +41,7 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Scope")
|
||||
*
|
||||
* @var \Chill\MainBundle\Entity\Scope The document's center
|
||||
* @var Scope The document's center
|
||||
*/
|
||||
private ?\Chill\MainBundle\Entity\Scope $scope = null;
|
||||
|
||||
|
Reference in New Issue
Block a user