mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
apply rector rules
This commit is contained in:
@@ -27,20 +27,16 @@ class CustomField
|
||||
final public const ONE_TO_ONE = 1;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
private $active = true;
|
||||
private bool $active = true;
|
||||
|
||||
/**
|
||||
* @var CustomFieldsGroup
|
||||
*
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldsGroup",
|
||||
* inversedBy="customFields")
|
||||
*/
|
||||
private $customFieldGroup;
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -59,11 +55,9 @@ class CustomField
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private $options = [];
|
||||
private array $options = [];
|
||||
|
||||
/**
|
||||
* @var float
|
||||
@@ -73,11 +67,9 @@ class CustomField
|
||||
private $ordering;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
private $required = false;
|
||||
private false $required = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
@@ -11,6 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
@@ -22,10 +23,9 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
class Option
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
private $active = true;
|
||||
private bool $active = true;
|
||||
|
||||
/**
|
||||
* @var Collection<Option>
|
||||
@@ -45,33 +45,34 @@ class Option
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="string", length=50, name="internal_key")
|
||||
*/
|
||||
private $internalKey = '';
|
||||
private string $internalKey = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @ORM\Column(type="string", length=15)
|
||||
*/
|
||||
private $key;
|
||||
private ?string $key = null;
|
||||
|
||||
/**
|
||||
* @var Option
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option",
|
||||
* inversedBy="children")
|
||||
* @ORM\JoinColumn(nullable=true)
|
||||
*/
|
||||
private $parent;
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option $parent = null;
|
||||
|
||||
/**
|
||||
* A json representation of text (multilingual).
|
||||
*
|
||||
* @var array
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private $text;
|
||||
private ?array $text = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->children = new ArrayCollection();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
|
@@ -26,10 +26,8 @@ class CustomFieldsGroup
|
||||
/**
|
||||
* The custom fields of the group that are active.
|
||||
* This variable if null, if this informations has not been computed.
|
||||
*
|
||||
* @var array|null
|
||||
*/
|
||||
private $activeCustomFields;
|
||||
private ?array $activeCustomFields = null;
|
||||
|
||||
/**
|
||||
* The custom fields of the group.
|
||||
@@ -67,11 +65,9 @@ class CustomFieldsGroup
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*
|
||||
* @ORM\Column(type="json")
|
||||
*/
|
||||
private $options = [];
|
||||
private array $options = [];
|
||||
|
||||
/**
|
||||
* CustomFieldsGroup constructor.
|
||||
|
Reference in New Issue
Block a user