mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Rector: apply rules for doctrine code quality
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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")
|
||||
|
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user