apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

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