@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class RouteRepository extends ServiceEntityRepository |
| 10 | 10 | { |
| 11 | - public function __construct(RegistryInterface $registry) |
|
| 11 | + public function __construct (RegistryInterface $registry) |
|
| 12 | 12 | { |
| 13 | 13 | parent::__construct($registry, Route::class); |
| 14 | 14 | } |
@@ -12,13 +12,13 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | private $errors; |
| 14 | 14 | |
| 15 | - public function __construct(ConstraintViolationListInterface $errors, string $message = '', int $code = 0, Throwable $previous = null) |
|
| 15 | + public function __construct (ConstraintViolationListInterface $errors, string $message = '', int $code = 0, Throwable $previous = null) |
|
| 16 | 16 | { |
| 17 | 17 | $this->errors = $errors; |
| 18 | 18 | parent::__construct((string) $errors . '. ' . $message, $code, $previous); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - public function getErrors() |
|
| 21 | + public function getErrors () |
|
| 22 | 22 | { |
| 23 | 23 | return $this->errors; |
| 24 | 24 | } |
@@ -9,22 +9,22 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @return int |
| 11 | 11 | */ |
| 12 | - public function getSort(): int; |
|
| 12 | + public function getSort (): int; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * @param int $sort |
| 16 | 16 | * @return SortableTrait|SortableInterface |
| 17 | 17 | */ |
| 18 | - public function setSort(int $sort = 0); |
|
| 18 | + public function setSort (int $sort = 0); |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @param bool|null $sortLast |
| 22 | 22 | * @return int |
| 23 | 23 | */ |
| 24 | - public function calculateSort(?bool $sortLast = null): int; |
|
| 24 | + public function calculateSort (?bool $sortLast = null): int; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @return Collection|SortableInterface[] |
| 28 | 28 | */ |
| 29 | - public function getSortCollection(): Collection; |
|
| 29 | + public function getSortCollection (): Collection; |
|
| 30 | 30 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private $navBar; |
| 40 | 40 | |
| 41 | - public function __construct() |
|
| 41 | + public function __construct () |
|
| 42 | 42 | { |
| 43 | 43 | $this->id = Uuid::uuid4()->getHex(); |
| 44 | 44 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @return string |
| 48 | 48 | */ |
| 49 | - public function getId() |
|
| 49 | + public function getId () |
|
| 50 | 50 | { |
| 51 | 51 | return $this->id; |
| 52 | 52 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * @return bool |
| 56 | 56 | */ |
| 57 | - public function isDefault(): bool |
|
| 57 | + public function isDefault (): bool |
|
| 58 | 58 | { |
| 59 | 59 | return $this->default; |
| 60 | 60 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param bool $default |
| 64 | 64 | */ |
| 65 | - public function setDefault(bool $default): void |
|
| 65 | + public function setDefault (bool $default): void |
|
| 66 | 66 | { |
| 67 | 67 | $this->default = $default; |
| 68 | 68 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * @return null|NavBar |
| 72 | 72 | */ |
| 73 | - public function getNavBar(): ?NavBar |
|
| 73 | + public function getNavBar (): ?NavBar |
|
| 74 | 74 | { |
| 75 | 75 | return $this->navBar; |
| 76 | 76 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * @param null|NavBar $navBar |
| 80 | 80 | */ |
| 81 | - public function setNavBar(?NavBar $navBar): void |
|
| 81 | + public function setNavBar (?NavBar $navBar): void |
|
| 82 | 82 | { |
| 83 | 83 | $this->navBar = $navBar; |
| 84 | 84 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface ValidComponentInterface |
| 8 | 8 | { |
| 9 | - public function getValidComponents(): ArrayCollection; |
|
| 10 | - public function addValidComponent(string $component); |
|
| 11 | - public function removeValidComponent(string $component); |
|
| 9 | + public function getValidComponents (): ArrayCollection; |
|
| 10 | + public function addValidComponent (string $component); |
|
| 11 | + public function removeValidComponent (string $component); |
|
| 12 | 12 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @return int |
| 26 | 26 | */ |
| 27 | - public function getSort(): int |
|
| 27 | + public function getSort (): int |
|
| 28 | 28 | { |
| 29 | 29 | return $this->sort; |
| 30 | 30 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @param int $sort |
| 34 | 34 | * @return SortableTrait|SortableInterface |
| 35 | 35 | */ |
| 36 | - public function setSort(int $sort = 0) |
|
| 36 | + public function setSort (int $sort = 0) |
|
| 37 | 37 | { |
| 38 | 38 | $this->sort = $sort; |
| 39 | 39 | return $this; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @param bool|null $sortLast |
| 44 | 44 | * @return int |
| 45 | 45 | */ |
| 46 | - final public function calculateSort(?bool $sortLast = null): int |
|
| 46 | + final public function calculateSort (?bool $sortLast = null): int |
|
| 47 | 47 | { |
| 48 | 48 | /* @var $collection Collection|SortableInterface[] */ |
| 49 | 49 | $collection = $this->getSortCollection(); |
@@ -61,5 +61,5 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * @return ArrayCollection |
| 63 | 63 | */ |
| 64 | - abstract public function getSortCollection(): ArrayCollection; |
|
| 64 | + abstract public function getSortCollection (): ArrayCollection; |
|
| 65 | 65 | } |
@@ -7,5 +7,5 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @return bool |
| 9 | 9 | */ |
| 10 | - public function onDeleteCascade(): bool; |
|
| 10 | + public function onDeleteCascade (): bool; |
|
| 11 | 11 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * @return ArrayCollection |
| 21 | 21 | */ |
| 22 | - public function getValidComponents(): ArrayCollection |
|
| 22 | + public function getValidComponents (): ArrayCollection |
|
| 23 | 23 | { |
| 24 | 24 | return $this->validComponents; |
| 25 | 25 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param string $component |
| 29 | 29 | * @return ValidComponentTrait |
| 30 | 30 | */ |
| 31 | - public function addValidComponent(string $component): self |
|
| 31 | + public function addValidComponent (string $component): self |
|
| 32 | 32 | { |
| 33 | 33 | if (!$this->validComponents->contains($component)) { |
| 34 | 34 | $this->validComponents->add($component); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * @param string $component |
| 41 | 41 | * @return ValidComponentTrait |
| 42 | 42 | */ |
| 43 | - public function removeValidComponent(string $component): self |
|
| 43 | + public function removeValidComponent (string $component): self |
|
| 44 | 44 | { |
| 45 | 45 | $this->validComponents->removeElement($component); |
| 46 | 46 | return $this; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * @param ValidComponentInterface $entity |
| 51 | 51 | * @param bool $force |
| 52 | 52 | */ |
| 53 | - protected function cascadeValidComponents(ValidComponentInterface $entity, bool $force = false): void |
|
| 53 | + protected function cascadeValidComponents (ValidComponentInterface $entity, bool $force = false): void |
|
| 54 | 54 | { |
| 55 | 55 | if ($force) { |
| 56 | 56 | // Set to true so force the cascade whether empty or not |
@@ -14,54 +14,54 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * NavigationItemInterface constructor. |
| 16 | 16 | */ |
| 17 | - public function __construct(); |
|
| 17 | + public function __construct (); |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @return string |
| 21 | 21 | */ |
| 22 | - public function getId(): string; |
|
| 22 | + public function getId (): string; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @return null|Route |
| 26 | 26 | */ |
| 27 | - public function getRoute(): ?Route; |
|
| 27 | + public function getRoute (): ?Route; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return null|string |
| 31 | 31 | */ |
| 32 | - public function getFragment(): ?string; |
|
| 32 | + public function getFragment (): ?string; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @return string |
| 36 | 36 | */ |
| 37 | - public function getLabel(): string; |
|
| 37 | + public function getLabel (): string; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @return null|AbstractNavigation |
| 41 | 41 | */ |
| 42 | - public function getChild(): ?AbstractNavigation; |
|
| 42 | + public function getChild (): ?AbstractNavigation; |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @param null|Route $route |
| 46 | 46 | * @return AbstractNavigationItem |
| 47 | 47 | */ |
| 48 | - public function setRoute(?Route $route): AbstractNavigationItem; |
|
| 48 | + public function setRoute (?Route $route): AbstractNavigationItem; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param null|string $fragment |
| 52 | 52 | * @return AbstractNavigationItem |
| 53 | 53 | */ |
| 54 | - public function setFragment(?string $fragment): AbstractNavigationItem; |
|
| 54 | + public function setFragment (?string $fragment): AbstractNavigationItem; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @param string $label |
| 58 | 58 | * @return AbstractNavigationItem |
| 59 | 59 | */ |
| 60 | - public function setLabel(string $label): AbstractNavigationItem; |
|
| 60 | + public function setLabel (string $label): AbstractNavigationItem; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @param null|AbstractNavigation $child |
| 64 | 64 | * @return AbstractNavigationItem |
| 65 | 65 | */ |
| 66 | - public function setChild(?AbstractNavigation $child): AbstractNavigationItem; |
|
| 66 | + public function setChild (?AbstractNavigation $child): AbstractNavigationItem; |
|
| 67 | 67 | } |