Rector: apply rules for doctrine code quality

This commit is contained in:
2023-08-31 10:35:52 +02:00
parent bc9b7b1776
commit e4e52234ad
32 changed files with 74 additions and 92 deletions

View File

@@ -54,7 +54,7 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
private ?int $id = null;
/**
* @ORM\ManyToOne(
@@ -83,10 +83,8 @@ class Document implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\User")
*
* @var \Chill\PersonBundle\Entity\user The user who encoded the exif_read_data
*/
private $user;
private ?\Chill\MainBundle\Entity\User $user = null;
public function getCategory(): ?DocumentCategory
{

View File

@@ -24,7 +24,7 @@ class DocumentCategory
*
* @var string The class of the document (ie Chill\DocStoreBundle\PersonDocument)
*/
private $documentClass;
private ?string $documentClass = null;
/**
* @ORM\Column(type="json")

View File

@@ -33,7 +33,7 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
*
* @var \Chill\MainBundle\Entity\Scope The document's center
*/
private $scope;
private ?\Chill\MainBundle\Entity\Scope $scope = null;
public function getCenter()
{