update php-cs-fixer and rector + fix rules

This commit is contained in:
2024-01-09 13:50:45 +01:00
parent a63b40fb6c
commit 825cd127d1
79 changed files with 220 additions and 229 deletions

View File

@@ -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]
);

View File

@@ -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;