mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -17,7 +17,9 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
* CustomField.
|
||||
*
|
||||
* @ORM\Entity
|
||||
*
|
||||
* @ORM\Table(name="customfield")
|
||||
*
|
||||
* @ORM\HasLifecycleCallbacks
|
||||
*/
|
||||
class CustomField
|
||||
@@ -39,10 +41,10 @@ class CustomField
|
||||
private ?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldGroup = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*
|
||||
* @ORM\Id
|
||||
*
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
*
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*/
|
||||
private ?int $id = null;
|
||||
@@ -60,8 +62,6 @@ class CustomField
|
||||
private array $options = [];
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*
|
||||
* @ORM\Column(type="float")
|
||||
*/
|
||||
private ?float $ordering = null;
|
||||
@@ -72,15 +72,11 @@ class CustomField
|
||||
private false $required = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private ?string $slug = null;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(type="string", length=255)
|
||||
*/
|
||||
private ?string $type = null;
|
||||
@@ -214,11 +210,9 @@ class CustomField
|
||||
/**
|
||||
* Set customFieldGroup.
|
||||
*
|
||||
* @param CustomFieldsGroup $customFieldGroup
|
||||
*
|
||||
* @return CustomField
|
||||
*/
|
||||
public function setCustomFieldsGroup(?CustomFieldsGroup $customFieldGroup = null)
|
||||
public function setCustomFieldsGroup(CustomFieldsGroup $customFieldGroup = null)
|
||||
{
|
||||
$this->customFieldGroup = $customFieldGroup;
|
||||
|
||||
@@ -273,8 +267,6 @@ class CustomField
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $slug
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSlug($slug)
|
||||
|
Reference in New Issue
Block a user