@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | private $form; |
| 60 | 60 | |
| 61 | - public static function loadValidatorMetadata(ClassMetadata $metadata): void |
|
| 61 | + public static function loadValidatorMetadata (ClassMetadata $metadata): void |
|
| 62 | 62 | { |
| 63 | 63 | $metadata->addPropertyConstraints( |
| 64 | 64 | 'formType', |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @return string |
| 78 | 78 | */ |
| 79 | - public function getFormType(): string |
|
| 79 | + public function getFormType (): string |
|
| 80 | 80 | { |
| 81 | 81 | return $this->formType; |
| 82 | 82 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * @param string $formType |
| 86 | 86 | */ |
| 87 | - public function setFormType(string $formType): void |
|
| 87 | + public function setFormType (string $formType): void |
|
| 88 | 88 | { |
| 89 | 89 | $this->formType = $formType; |
| 90 | 90 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * @return null|string |
| 94 | 94 | */ |
| 95 | - public function getSuccessHandler(): ?string |
|
| 95 | + public function getSuccessHandler (): ?string |
|
| 96 | 96 | { |
| 97 | 97 | return $this->successHandler; |
| 98 | 98 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * @param null|string $successHandler |
| 102 | 102 | */ |
| 103 | - public function setSuccessHandler(?string $successHandler): void |
|
| 103 | + public function setSuccessHandler (?string $successHandler): void |
|
| 104 | 104 | { |
| 105 | 105 | $this->successHandler = $successHandler; |
| 106 | 106 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * @return null|FormView |
| 110 | 110 | */ |
| 111 | - public function getForm(): ?FormView |
|
| 111 | + public function getForm (): ?FormView |
|
| 112 | 112 | { |
| 113 | 113 | return $this->form; |
| 114 | 114 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * @param null|FormView $form |
| 118 | 118 | */ |
| 119 | - public function setForm(?FormView $form): void |
|
| 119 | + public function setForm (?FormView $form): void |
|
| 120 | 120 | { |
| 121 | 121 | $this->form = $form; |
| 122 | 122 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * @return \DateTime|null |
| 126 | 126 | */ |
| 127 | - public function getLastModified(): ?\DateTime |
|
| 127 | + public function getLastModified (): ?\DateTime |
|
| 128 | 128 | { |
| 129 | 129 | return $this->lastModified; |
| 130 | 130 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * @param \DateTime|null $lastModified |
| 134 | 134 | */ |
| 135 | - public function setLastModified(?\DateTime $lastModified): void |
|
| 135 | + public function setLastModified (?\DateTime $lastModified): void |
|
| 136 | 136 | { |
| 137 | 137 | $this->lastModified = $lastModified; |
| 138 | 138 | } |
@@ -13,62 +13,62 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * ComponentInterface constructor. |
| 15 | 15 | */ |
| 16 | - public function __construct(); |
|
| 16 | + public function __construct (); |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * @return string |
| 20 | 20 | */ |
| 21 | - public function getId(): string; |
|
| 21 | + public function getId (): string; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @return null|string |
| 25 | 25 | */ |
| 26 | - public function getClassName(): ?string; |
|
| 26 | + public function getClassName (): ?string; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param null|string $className |
| 30 | 30 | * @return AbstractComponent |
| 31 | 31 | */ |
| 32 | - public function setClassName(?string $className): AbstractComponent; |
|
| 32 | + public function setClassName (?string $className): AbstractComponent; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @param ContentInterface $content |
| 36 | 36 | * @param bool|null $sortLast |
| 37 | 37 | * @return AbstractComponent |
| 38 | 38 | */ |
| 39 | - public function addLocation(ContentInterface $content, ?bool $sortLast = null): AbstractComponent; |
|
| 39 | + public function addLocation (ContentInterface $content, ?bool $sortLast = null): AbstractComponent; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @param ContentInterface $content |
| 43 | 43 | * @return AbstractComponent |
| 44 | 44 | */ |
| 45 | - public function removeLocation(ContentInterface $content): AbstractComponent; |
|
| 45 | + public function removeLocation (ContentInterface $content): AbstractComponent; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @param array $componentGroups |
| 49 | 49 | * @return AbstractComponent |
| 50 | 50 | */ |
| 51 | - public function setComponentGroups(array $componentGroups): AbstractComponent; |
|
| 51 | + public function setComponentGroups (array $componentGroups): AbstractComponent; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @param ComponentGroup $componentGroup |
| 55 | 55 | * @return AbstractComponent |
| 56 | 56 | */ |
| 57 | - public function addComponentGroup(ComponentGroup $componentGroup): AbstractComponent; |
|
| 57 | + public function addComponentGroup (ComponentGroup $componentGroup): AbstractComponent; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param ComponentGroup $componentGroup |
| 61 | 61 | * @return AbstractComponent |
| 62 | 62 | */ |
| 63 | - public function removeComponentGroup(ComponentGroup $componentGroup): AbstractComponent; |
|
| 63 | + public function removeComponentGroup (ComponentGroup $componentGroup): AbstractComponent; |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * @return ArrayCollection|ComponentGroup[] |
| 67 | 67 | */ |
| 68 | - public function getComponentGroups(): Collection; |
|
| 68 | + public function getComponentGroups (): Collection; |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * @return string |
| 72 | 72 | */ |
| 73 | - public static function getComponentName(): string; |
|
| 73 | + public static function getComponentName (): string; |
|
| 74 | 74 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * @param ClassMetadata $metadata |
| 41 | 41 | */ |
| 42 | - public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 42 | + public static function loadValidatorMetadata (ClassMetadata $metadata) |
|
| 43 | 43 | { |
| 44 | 44 | $metadata->addPropertyConstraint( |
| 45 | 45 | 'filePath', |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | /** |
| 55 | 55 | * Gallery constructor. |
| 56 | 56 | */ |
| 57 | - public function __construct() |
|
| 57 | + public function __construct () |
|
| 58 | 58 | { |
| 59 | 59 | parent::__construct(); |
| 60 | 60 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @return null|string |
| 64 | 64 | */ |
| 65 | - public function getTitle(): ?string |
|
| 65 | + public function getTitle (): ?string |
|
| 66 | 66 | { |
| 67 | 67 | return $this->title; |
| 68 | 68 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @param null|string $title |
| 72 | 72 | * @return GalleryItem |
| 73 | 73 | */ |
| 74 | - public function setTitle(?string $title): self |
|
| 74 | + public function setTitle (?string $title): self |
|
| 75 | 75 | { |
| 76 | 76 | $this->title = $title; |
| 77 | 77 | return $this; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * @return null|string |
| 82 | 82 | */ |
| 83 | - public function getCaption(): ?string |
|
| 83 | + public function getCaption (): ?string |
|
| 84 | 84 | { |
| 85 | 85 | return $this->caption; |
| 86 | 86 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param null|string $caption |
| 90 | 90 | * @return GalleryItem |
| 91 | 91 | */ |
| 92 | - public function setCaption(?string $caption): self |
|
| 92 | + public function setCaption (?string $caption): self |
|
| 93 | 93 | { |
| 94 | 94 | $this->caption = $caption; |
| 95 | 95 | return $this; |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class Gallery extends AbstractComponent |
| 18 | 18 | { |
| 19 | - public function __construct() |
|
| 19 | + public function __construct () |
|
| 20 | 20 | { |
| 21 | 21 | parent::__construct(); |
| 22 | 22 | $this->addValidComponent(GalleryItem::class); |
| 23 | 23 | $this->addComponentGroup(new ComponentGroup()); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function onDeleteCascade(): bool |
|
| 26 | + public function onDeleteCascade (): bool |
|
| 27 | 27 | { |
| 28 | 28 | return true; |
| 29 | 29 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @return bool |
| 28 | 28 | */ |
| 29 | - public function isMenuLabel(): bool |
|
| 29 | + public function isMenuLabel (): bool |
|
| 30 | 30 | { |
| 31 | 31 | return $this->menuLabel; |
| 32 | 32 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * @param bool $menuLabel |
| 36 | 36 | */ |
| 37 | - public function setMenuLabel(bool $menuLabel): void |
|
| 37 | + public function setMenuLabel (bool $menuLabel): void |
|
| 38 | 38 | { |
| 39 | 39 | $this->menuLabel = $menuLabel; |
| 40 | 40 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | private $content; |
| 26 | 26 | |
| 27 | - public static function loadValidatorMetadata(ClassMetadata $metadata): void |
|
| 27 | + public static function loadValidatorMetadata (ClassMetadata $metadata): void |
|
| 28 | 28 | { |
| 29 | 29 | $metadata->addPropertyConstraint( |
| 30 | 30 | 'content', |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @return string |
| 37 | 37 | */ |
| 38 | - public function getContent(): string |
|
| 38 | + public function getContent (): string |
|
| 39 | 39 | { |
| 40 | 40 | return $this->content; |
| 41 | 41 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * @param string $content |
| 45 | 45 | */ |
| 46 | - public function setContent(string $content): void |
|
| 46 | + public function setContent (string $content): void |
|
| 47 | 47 | { |
| 48 | 48 | $this->content = $content; |
| 49 | 49 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * @return null|string |
| 23 | 23 | */ |
| 24 | - public function getFilePath(): ?string |
|
| 24 | + public function getFilePath (): ?string |
|
| 25 | 25 | { |
| 26 | 26 | return $this->filePath; |
| 27 | 27 | } |
@@ -29,12 +29,12 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param null|string $filePath |
| 31 | 31 | */ |
| 32 | - public function setFilePath(?string $filePath): void |
|
| 32 | + public function setFilePath (?string $filePath): void |
|
| 33 | 33 | { |
| 34 | 34 | $this->filePath = $filePath; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public static function getImagineFilters(): array |
|
| 37 | + public static function getImagineFilters (): array |
|
| 38 | 38 | { |
| 39 | 39 | return [ |
| 40 | 40 | 'thumbnailPath' => 'thumbnail', |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | private $tabs; |
| 43 | 43 | |
| 44 | - public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
| 44 | + public static function loadValidatorMetadata (ClassMetadata $metadata) |
|
| 45 | 45 | { |
| 46 | 46 | $metadata->addPropertyConstraint( |
| 47 | 47 | 'title', |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @return null|string |
| 54 | 54 | */ |
| 55 | - public function getTitle(): ?string |
|
| 55 | + public function getTitle (): ?string |
|
| 56 | 56 | { |
| 57 | 57 | return $this->title; |
| 58 | 58 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * @param null|string $title |
| 62 | 62 | */ |
| 63 | - public function setTitle(?string $title): void |
|
| 63 | + public function setTitle (?string $title): void |
|
| 64 | 64 | { |
| 65 | 65 | $this->title = $title; |
| 66 | 66 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * @return null|string |
| 70 | 70 | */ |
| 71 | - public function getSubtitle(): ?string |
|
| 71 | + public function getSubtitle (): ?string |
|
| 72 | 72 | { |
| 73 | 73 | return $this->subtitle; |
| 74 | 74 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @param null|string $subtitle |
| 78 | 78 | */ |
| 79 | - public function setSubtitle(?string $subtitle): void |
|
| 79 | + public function setSubtitle (?string $subtitle): void |
|
| 80 | 80 | { |
| 81 | 81 | $this->subtitle = $subtitle; |
| 82 | 82 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * @return Tabs|null |
| 86 | 86 | */ |
| 87 | - public function getTabs(): ?Tabs |
|
| 87 | + public function getTabs (): ?Tabs |
|
| 88 | 88 | { |
| 89 | 89 | return $this->tabs; |
| 90 | 90 | } |
@@ -92,12 +92,12 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * @param Tabs|null $tabs |
| 94 | 94 | */ |
| 95 | - public function setTabs(?Tabs $tabs): void |
|
| 95 | + public function setTabs (?Tabs $tabs): void |
|
| 96 | 96 | { |
| 97 | 97 | $this->tabs = $tabs; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - public function __toString() |
|
| 100 | + public function __toString () |
|
| 101 | 101 | { |
| 102 | 102 | return 'Hero: ' . $this->getTitle(); |
| 103 | 103 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | private $content; |
| 53 | 53 | |
| 54 | - public static function loadValidatorMetadata(ClassMetadata $metadata): void |
|
| 54 | + public static function loadValidatorMetadata (ClassMetadata $metadata): void |
|
| 55 | 55 | { |
| 56 | 56 | $metadata->addPropertyConstraint( |
| 57 | 57 | 'filePath', |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * @return null|string |
| 74 | 74 | */ |
| 75 | - public function getTitle(): ?string |
|
| 75 | + public function getTitle (): ?string |
|
| 76 | 76 | { |
| 77 | 77 | return $this->title; |
| 78 | 78 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * @param null|string $title |
| 82 | 82 | */ |
| 83 | - public function setTitle(?string $title): void |
|
| 83 | + public function setTitle (?string $title): void |
|
| 84 | 84 | { |
| 85 | 85 | $this->title = $title; |
| 86 | 86 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * @return null|string |
| 90 | 90 | */ |
| 91 | - public function getSubtitle(): ?string |
|
| 91 | + public function getSubtitle (): ?string |
|
| 92 | 92 | { |
| 93 | 93 | return $this->subtitle; |
| 94 | 94 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * @param null|string $subtitle |
| 98 | 98 | */ |
| 99 | - public function setSubtitle(?string $subtitle): void |
|
| 99 | + public function setSubtitle (?string $subtitle): void |
|
| 100 | 100 | { |
| 101 | 101 | $this->subtitle = $subtitle; |
| 102 | 102 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * @return string |
| 106 | 106 | */ |
| 107 | - public function getContent(): string |
|
| 107 | + public function getContent (): string |
|
| 108 | 108 | { |
| 109 | 109 | return $this->content; |
| 110 | 110 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * @param string $content |
| 114 | 114 | */ |
| 115 | - public function setContent(string $content): void |
|
| 115 | + public function setContent (string $content): void |
|
| 116 | 116 | { |
| 117 | 117 | $this->content = $content; |
| 118 | 118 | } |