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

@@ -19,6 +19,7 @@ use Doctrine\ORM\Mapping as ORM;
* CustomFieldGroup.
*
* @ORM\Entity
*
* @ORM\Table(name="customfieldsgroup")
*/
class CustomFieldsGroup
@@ -34,25 +35,25 @@ class CustomFieldsGroup
* The custom fields are asc-ordered regarding to their property "ordering".
*
* @var Collection<CustomField>
*
* @ORM\OneToMany(
* targetEntity="Chill\CustomFieldsBundle\Entity\CustomField",
* mappedBy="customFieldGroup")
*
* @ORM\OrderBy({"ordering": "ASC"})
*/
private Collection $customFields;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
*/
private ?string $entity = null;
/**
* @var int
*
* @ORM\Id
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private ?int $id = null;
@@ -138,9 +139,9 @@ class CustomFieldsGroup
/**
* Get name.
*/
public function getName(?string $language = null): array|string
public function getName(string $language = null): array|string
{
//TODO set this in a service, PLUS twig function
// TODO set this in a service, PLUS twig function
if (null !== $language) {
if (isset($this->name[$language])) {
return $this->name[$language];