php cs fixer

This commit is contained in:
nobohan 2021-12-13 12:38:18 +01:00
parent b5178c3be3
commit eaf7ae6f2f
2 changed files with 25 additions and 18 deletions

View File

@ -32,11 +32,6 @@ class Civility
*/ */
private bool $active = true; private bool $active = true;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $order = null;
/** /**
* @ORM\Id * @ORM\Id
* @ORM\GeneratedValue * @ORM\GeneratedValue
@ -52,6 +47,11 @@ class Civility
*/ */
private array $name = []; private array $name = [];
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $order = null;
public function getAbbreviation(): array public function getAbbreviation(): array
{ {
return $this->abbreviation; return $this->abbreviation;
@ -67,16 +67,16 @@ class Civility
return $this->id; return $this->id;
} }
public function getOrder(): ?int
{
return $this->order;
}
public function getName(): ?array public function getName(): ?array
{ {
return $this->name; return $this->name;
} }
public function getOrder(): ?int
{
return $this->order;
}
/** /**
* @return Civility * @return Civility
*/ */
@ -94,17 +94,17 @@ class Civility
return $this; return $this;
} }
public function setOrder(int $order): self
{
$this->order = $order;
return $this;
}
public function setName(array $name): self public function setName(array $name): self
{ {
$this->name = $name; $this->name = $name;
return $this; return $this;
} }
public function setOrder(int $order): self
{
$this->order = $order;
return $this;
}
} }

View File

@ -1,5 +1,12 @@
<?php <?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1); declare(strict_types=1);
namespace Chill\Migrations\Main; namespace Chill\Migrations\Main;
@ -8,7 +15,7 @@ use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration; use Doctrine\Migrations\AbstractMigration;
/** /**
* Add order to civility * Add order to civility.
*/ */
final class Version20211213112628 extends AbstractMigration final class Version20211213112628 extends AbstractMigration
{ {