mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user