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

@@ -45,7 +45,7 @@ class CustomField
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @var array
@@ -64,7 +64,7 @@ class CustomField
*
* @ORM\Column(type="float")
*/
private $ordering;
private ?float $ordering = null;
/**
* @ORM\Column(type="boolean")
@@ -76,14 +76,14 @@ class CustomField
*
* @ORM\Column(type="string", length=255)
*/
private $slug;
private ?string $slug = null;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
*/
private $type;
private ?string $type = null;
/**
* Get customFieldGroup.

View File

@@ -42,7 +42,7 @@ class Option
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @ORM\Column(type="string", length=50, name="internal_key")

View File

@@ -34,14 +34,14 @@ class CustomFieldsDefaultGroup
*
* sf4 check: option inversedBy="customFields" return inconsistent error mapping !!
*/
private $customFieldsGroup;
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldsGroup = null;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
*/
private $entity;
private ?string $entity = null;
/**
* @var int
@@ -50,7 +50,7 @@ class CustomFieldsDefaultGroup
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* Get customFieldsGroup.

View File

@@ -46,7 +46,7 @@ class CustomFieldsGroup
*
* @ORM\Column(type="string", length=255)
*/
private $entity;
private ?string $entity = null;
/**
* @var int
@@ -55,7 +55,7 @@ class CustomFieldsGroup
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
private ?int $id = null;
/**
* @var array