@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * AbstractComponent constructor. |
| 82 | 82 | */ |
| 83 | - public function __construct() |
|
| 83 | + public function __construct () |
|
| 84 | 84 | { |
| 85 | 85 | $this->id = Uuid::uuid4()->getHex(); |
| 86 | 86 | $this->locations = new ArrayCollection; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * @return string |
| 93 | 93 | */ |
| 94 | - public function getId(): string |
|
| 94 | + public function getId (): string |
|
| 95 | 95 | { |
| 96 | 96 | return $this->id; |
| 97 | 97 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * @return null|string |
| 101 | 101 | */ |
| 102 | - public function getClassName(): ?string |
|
| 102 | + public function getClassName (): ?string |
|
| 103 | 103 | { |
| 104 | 104 | return $this->className; |
| 105 | 105 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param null|string $className |
| 109 | 109 | * @return AbstractComponent |
| 110 | 110 | */ |
| 111 | - public function setClassName(?string $className): AbstractComponent |
|
| 111 | + public function setClassName (?string $className): AbstractComponent |
|
| 112 | 112 | { |
| 113 | 113 | $this->className = $className; |
| 114 | 114 | return $this; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @param bool|null $sortLast |
| 120 | 120 | * @return AbstractComponent |
| 121 | 121 | */ |
| 122 | - public function addLocation(ContentInterface $content, ?bool $sortLast = null): AbstractComponent |
|
| 122 | + public function addLocation (ContentInterface $content, ?bool $sortLast = null): AbstractComponent |
|
| 123 | 123 | { |
| 124 | 124 | $this->locations->add($content); |
| 125 | 125 | return $this; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * @param ContentInterface $content |
| 130 | 130 | * @return AbstractComponent |
| 131 | 131 | */ |
| 132 | - public function removeLocation(ContentInterface $content): AbstractComponent |
|
| 132 | + public function removeLocation (ContentInterface $content): AbstractComponent |
|
| 133 | 133 | { |
| 134 | 134 | $this->locations->removeElement($content); |
| 135 | 135 | return $this; |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * @param array $componentGroups |
| 140 | 140 | * @return AbstractComponent |
| 141 | 141 | */ |
| 142 | - public function setComponentGroups(array $componentGroups): AbstractComponent |
|
| 142 | + public function setComponentGroups (array $componentGroups): AbstractComponent |
|
| 143 | 143 | { |
| 144 | 144 | $this->componentGroups = new ArrayCollection; |
| 145 | 145 | foreach ($componentGroups as $componentGroup) { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @param ComponentGroup $componentGroup |
| 153 | 153 | * @return AbstractComponent |
| 154 | 154 | */ |
| 155 | - public function addComponentGroup(ComponentGroup $componentGroup): AbstractComponent |
|
| 155 | + public function addComponentGroup (ComponentGroup $componentGroup): AbstractComponent |
|
| 156 | 156 | { |
| 157 | 157 | $componentGroup->setParent($this); |
| 158 | 158 | $this->componentGroups->add($componentGroup); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * @param ComponentGroup $componentGroup |
| 164 | 164 | * @return AbstractComponent |
| 165 | 165 | */ |
| 166 | - public function removeComponentGroup(ComponentGroup $componentGroup): AbstractComponent |
|
| 166 | + public function removeComponentGroup (ComponentGroup $componentGroup): AbstractComponent |
|
| 167 | 167 | { |
| 168 | 168 | $this->componentGroups->removeElement($componentGroup); |
| 169 | 169 | return $this; |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | /** |
| 173 | 173 | * @return ArrayCollection|ComponentGroup[] |
| 174 | 174 | */ |
| 175 | - public function getComponentGroups(): Collection |
|
| 175 | + public function getComponentGroups (): Collection |
|
| 176 | 176 | { |
| 177 | 177 | return $this->componentGroups; |
| 178 | 178 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * @Groups({"component"}) |
| 182 | 182 | * @return string |
| 183 | 183 | */ |
| 184 | - public static function getComponentName(): string |
|
| 184 | + public static function getComponentName (): string |
|
| 185 | 185 | { |
| 186 | 186 | $explodedClass = explode('\\', static::class); |
| 187 | 187 | return array_pop($explodedClass); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * @return ComponentGroup |
| 194 | 194 | * @throws \InvalidArgumentException |
| 195 | 195 | */ |
| 196 | - private function getComponentComponentGroup(AbstractComponent $component, int $componentGroupOffset = 0): ComponentGroup |
|
| 196 | + private function getComponentComponentGroup (AbstractComponent $component, int $componentGroupOffset = 0): ComponentGroup |
|
| 197 | 197 | { |
| 198 | 198 | /** @var ComponentGroup $componentGroup */ |
| 199 | 199 | $componentGroup = $component->getComponentGroups()->get($componentGroupOffset); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @return AbstractComponent |
| 210 | 210 | * @throws \InvalidArgumentException |
| 211 | 211 | */ |
| 212 | - public function addChildComponent(AbstractComponent $child, int $componentGroupOffset = 0): AbstractComponent |
|
| 212 | + public function addChildComponent (AbstractComponent $child, int $componentGroupOffset = 0): AbstractComponent |
|
| 213 | 213 | { |
| 214 | 214 | $componentGroup = $this->getComponentComponentGroup($this, $componentGroupOffset); |
| 215 | 215 | $componentGroup->addComponent(new ComponentLocation($componentGroup, $child)); |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | * @return AbstractComponent |
| 223 | 223 | * @throws \InvalidArgumentException |
| 224 | 224 | */ |
| 225 | - public function addToParentComponent(AbstractComponent $parent, int $componentGroupOffset = 0): AbstractComponent |
|
| 225 | + public function addToParentComponent (AbstractComponent $parent, int $componentGroupOffset = 0): AbstractComponent |
|
| 226 | 226 | { |
| 227 | 227 | if (!\in_array($parent, $this->getParentComponents(), true)) { |
| 228 | 228 | $componentGroup = $this->getComponentComponentGroup($parent, $componentGroupOffset); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | /** |
| 235 | 235 | * @return AbstractComponent[] |
| 236 | 236 | */ |
| 237 | - private function getParentComponents(): array |
|
| 237 | + private function getParentComponents (): array |
|
| 238 | 238 | { |
| 239 | 239 | $parentContent = $this->getParentContent(); |
| 240 | 240 | return array_unique( |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | /** |
| 255 | 255 | * @return AbstractContent[] |
| 256 | 256 | */ |
| 257 | - private function getParentContent(): array |
|
| 257 | + private function getParentContent (): array |
|
| 258 | 258 | { |
| 259 | 259 | return array_unique( |
| 260 | 260 | array_filter( |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | /** |
| 272 | 272 | * @return bool |
| 273 | 273 | */ |
| 274 | - public function onDeleteCascade(): bool |
|
| 274 | + public function onDeleteCascade (): bool |
|
| 275 | 275 | { |
| 276 | 276 | return false; |
| 277 | 277 | } |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | /** |
| 280 | 280 | * @return AbstractComponent|null |
| 281 | 281 | */ |
| 282 | - public function getParent(): ?AbstractComponent |
|
| 282 | + public function getParent (): ?AbstractComponent |
|
| 283 | 283 | { |
| 284 | 284 | return $this->parent; |
| 285 | 285 | } |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | /** |
| 288 | 288 | * @param AbstractComponent|null $parent |
| 289 | 289 | */ |
| 290 | - public function setParent(?AbstractComponent $parent): void |
|
| 290 | + public function setParent (?AbstractComponent $parent): void |
|
| 291 | 291 | { |
| 292 | 292 | $this->parent = $parent; |
| 293 | 293 | } |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | abstract class AbstractFeature extends AbstractComponent |
| 13 | 13 | { |
| 14 | - public function __construct() |
|
| 14 | + public function __construct () |
|
| 15 | 15 | { |
| 16 | 16 | parent::__construct(); |
| 17 | 17 | $this->addValidComponent(AbstractFeatureItem::class); |
| 18 | 18 | $this->addComponentGroup(new ComponentGroup()); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - public function onDeleteCascade(): bool |
|
| 21 | + public function onDeleteCascade (): bool |
|
| 22 | 22 | { |
| 23 | 23 | return true; |
| 24 | 24 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @return bool |
| 27 | 27 | */ |
| 28 | - public function isReverse(): bool |
|
| 28 | + public function isReverse (): bool |
|
| 29 | 29 | { |
| 30 | 30 | return $this->reverse; |
| 31 | 31 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param bool $reverse |
| 35 | 35 | */ |
| 36 | - public function setReverse(bool $reverse): void |
|
| 36 | + public function setReverse (bool $reverse): void |
|
| 37 | 37 | { |
| 38 | 38 | $this->reverse = $reverse; |
| 39 | 39 | } |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | protected $buttonClass; |
| 38 | 38 | |
| 39 | - public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 39 | + public static function loadValidatorMetadata (ClassMetadata $metadata) |
|
| 40 | 40 | { |
| 41 | 41 | $metadata->addPropertyConstraint( |
| 42 | 42 | 'description', |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * @return null|string |
| 49 | 49 | */ |
| 50 | - public function getDescription(): ?string |
|
| 50 | + public function getDescription (): ?string |
|
| 51 | 51 | { |
| 52 | 52 | return $this->description; |
| 53 | 53 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** |
| 56 | 56 | * @param null|string $description |
| 57 | 57 | */ |
| 58 | - public function setDescription(?string $description): void |
|
| 58 | + public function setDescription (?string $description): void |
|
| 59 | 59 | { |
| 60 | 60 | $this->description = $description; |
| 61 | 61 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * @return null|string |
| 65 | 65 | */ |
| 66 | - public function getButtonText(): ?string |
|
| 66 | + public function getButtonText (): ?string |
|
| 67 | 67 | { |
| 68 | 68 | return $this->buttonText; |
| 69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * @param null|string $buttonText |
| 73 | 73 | */ |
| 74 | - public function setButtonText(?string $buttonText): void |
|
| 74 | + public function setButtonText (?string $buttonText): void |
|
| 75 | 75 | { |
| 76 | 76 | $this->buttonText = $buttonText; |
| 77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * @return null|string |
| 81 | 81 | */ |
| 82 | - public function getButtonClass(): ?string |
|
| 82 | + public function getButtonClass (): ?string |
|
| 83 | 83 | { |
| 84 | 84 | return $this->buttonClass; |
| 85 | 85 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * @param null|string $buttonClass |
| 89 | 89 | */ |
| 90 | - public function setButtonClass(?string $buttonClass): void |
|
| 90 | + public function setButtonClass (?string $buttonClass): void |
|
| 91 | 91 | { |
| 92 | 92 | $this->buttonClass = $buttonClass; |
| 93 | 93 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @return null|string |
| 27 | 27 | */ |
| 28 | - public function getDescription(): ?string |
|
| 28 | + public function getDescription (): ?string |
|
| 29 | 29 | { |
| 30 | 30 | return $this->description; |
| 31 | 31 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param null|string $description |
| 35 | 35 | */ |
| 36 | - public function setDescription(?string $description): void |
|
| 36 | + public function setDescription (?string $description): void |
|
| 37 | 37 | { |
| 38 | 38 | $this->description = $description; |
| 39 | 39 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param ClassMetadata $metadata |
| 35 | 35 | */ |
| 36 | - public static function loadValidatorMetadata(ClassMetadata $metadata): void |
|
| 36 | + public static function loadValidatorMetadata (ClassMetadata $metadata): void |
|
| 37 | 37 | { |
| 38 | 38 | $metadata->addPropertyConstraint( |
| 39 | 39 | 'columns', |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * @return int |
| 51 | 51 | */ |
| 52 | - public function getColumns(): int |
|
| 52 | + public function getColumns (): int |
|
| 53 | 53 | { |
| 54 | 54 | return $this->columns; |
| 55 | 55 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * @param int $columns |
| 59 | 59 | */ |
| 60 | - public function setColumns(int $columns): void |
|
| 60 | + public function setColumns (int $columns): void |
|
| 61 | 61 | { |
| 62 | 62 | $this->columns = $columns; |
| 63 | 63 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @return null|string |
| 67 | 67 | */ |
| 68 | - public function getTitle(): ?string |
|
| 68 | + public function getTitle (): ?string |
|
| 69 | 69 | { |
| 70 | 70 | return $this->title; |
| 71 | 71 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * @param null|string $title |
| 75 | 75 | */ |
| 76 | - public function setTitle(?string $title): void |
|
| 76 | + public function setTitle (?string $title): void |
|
| 77 | 77 | { |
| 78 | 78 | $this->title = $title; |
| 79 | 79 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | protected $link; |
| 27 | 27 | |
| 28 | - public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 28 | + public static function loadValidatorMetadata (ClassMetadata $metadata) |
|
| 29 | 29 | { |
| 30 | 30 | $metadata->addPropertyConstraint( |
| 31 | 31 | 'label', |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * @return string |
| 42 | 42 | */ |
| 43 | - public function getLabel(): string |
|
| 43 | + public function getLabel (): string |
|
| 44 | 44 | { |
| 45 | 45 | return $this->label; |
| 46 | 46 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * @param string $label |
| 50 | 50 | */ |
| 51 | - public function setLabel(string $label): void |
|
| 51 | + public function setLabel (string $label): void |
|
| 52 | 52 | { |
| 53 | 53 | $this->label = $label; |
| 54 | 54 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * @return null|string |
| 58 | 58 | */ |
| 59 | - public function getLink(): ?string |
|
| 59 | + public function getLink (): ?string |
|
| 60 | 60 | { |
| 61 | 61 | return $this->link; |
| 62 | 62 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param null|string $link |
| 66 | 66 | */ |
| 67 | - public function setLink(?string $link): void |
|
| 67 | + public function setLink (?string $link): void |
|
| 68 | 68 | { |
| 69 | 69 | $this->link = $link; |
| 70 | 70 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @return null|string |
| 27 | 27 | */ |
| 28 | - public function getTitle(): ?string |
|
| 28 | + public function getTitle (): ?string |
|
| 29 | 29 | { |
| 30 | 30 | return $this->title; |
| 31 | 31 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param null|string $title |
| 35 | 35 | */ |
| 36 | - public function setTitle(?string $title): void |
|
| 36 | + public function setTitle (?string $title): void |
|
| 37 | 37 | { |
| 38 | 38 | $this->title = $title; |
| 39 | 39 | } |
@@ -7,20 +7,20 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @return string |
| 9 | 9 | */ |
| 10 | - public function getLabel(): string; |
|
| 10 | + public function getLabel (): string; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * @param string $label |
| 14 | 14 | */ |
| 15 | - public function setLabel(string $label): void; |
|
| 15 | + public function setLabel (string $label): void; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @return null|string |
| 19 | 19 | */ |
| 20 | - public function getLink(): ?string; |
|
| 20 | + public function getLink (): ?string; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @param null|string $link |
| 24 | 24 | */ |
| 25 | - public function setLink(?string $link): void; |
|
| 25 | + public function setLink (?string $link): void; |
|
| 26 | 26 | } |