apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -18,6 +18,7 @@ use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(
* repositoryClass="Chill\CustomFieldsBundle\EntityRepository\CustomFieldLongChoice\OptionRepository")
*
* @ORM\Table(name="custom_field_long_choice_options")
*/
class Option
@@ -29,6 +30,7 @@ class Option
/**
* @var Collection<Option>
*
* @ORM\OneToMany(
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option",
* mappedBy="parent")
@@ -36,10 +38,10 @@ class Option
private Collection $children;
/**
* @var int
*
* @ORM\Id
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private ?int $id = null;
@@ -58,6 +60,7 @@ class Option
* @ORM\ManyToOne(
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option",
* inversedBy="children")
*
* @ORM\JoinColumn(nullable=true)
*/
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldLongChoice\Option $parent = null;
@@ -147,8 +150,6 @@ class Option
}
/**
* @param $active
*
* @return $this
*/
public function setActive($active)
@@ -159,8 +160,6 @@ class Option
}
/**
* @param $internal_key
*
* @return $this
*/
public function setInternalKey($internal_key)
@@ -171,8 +170,6 @@ class Option
}
/**
* @param $key
*
* @return $this
*/
public function setKey($key)
@@ -185,7 +182,7 @@ class Option
/**
* @return $this
*/
public function setParent(?Option $parent = null)
public function setParent(Option $parent = null)
{
$this->parent = $parent;
$this->key = $parent->getKey();