@@ -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 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | private $methodRendered; |
69 | 69 | |
70 | - public function __construct(SymfonyFormView $formView, bool $children = true) |
|
70 | + public function __construct (SymfonyFormView $formView, bool $children = true) |
|
71 | 71 | { |
72 | 72 | $this->rendered = $formView->isRendered(); |
73 | 73 | $this->methodRendered = $formView->isMethodRendered(); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | - private function processViewVars(SymfonyFormView $formView): void |
|
83 | + private function processViewVars (SymfonyFormView $formView): void |
|
84 | 84 | { |
85 | 85 | $outputVars = array_merge(self::ARRAY_OUTPUT_VARS, self::OUTPUT_VARS); |
86 | 86 | foreach ($outputVars as $var) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | |
94 | - private function convertVarToArray($var): void |
|
94 | + private function convertVarToArray ($var): void |
|
95 | 95 | { |
96 | 96 | if (\in_array($var, self::ARRAY_OUTPUT_VARS, true)) { |
97 | 97 | /** @var iterable $choices */ |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | if (method_exists($choice, 'getMessage')) { |
102 | 102 | $this->vars[$var][] = $choice->getMessage(); |
103 | 103 | } else { |
104 | - $this->vars[$var][] = (array)$choice; |
|
104 | + $this->vars[$var][] = (array) $choice; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |
108 | 108 | } |
109 | 109 | |
110 | - private function addChild(SymfonyFormView $formViews): void |
|
110 | + private function addChild (SymfonyFormView $formViews): void |
|
111 | 111 | { |
112 | 112 | $formView = new FormView($formViews); |
113 | 113 | $this->children->add($formView); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * @return array |
118 | 118 | */ |
119 | - public function getVars(): array |
|
119 | + public function getVars (): array |
|
120 | 120 | { |
121 | 121 | return $this->vars; |
122 | 122 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * @return ArrayCollection |
126 | 126 | */ |
127 | - public function getChildren(): ArrayCollection |
|
127 | + public function getChildren (): ArrayCollection |
|
128 | 128 | { |
129 | 129 | return $this->children; |
130 | 130 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | /** |
133 | 133 | * @return bool |
134 | 134 | */ |
135 | - public function isRendered(): bool |
|
135 | + public function isRendered (): bool |
|
136 | 136 | { |
137 | 137 | return $this->rendered; |
138 | 138 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * @return bool |
142 | 142 | */ |
143 | - public function isMethodRendered(): bool |
|
143 | + public function isMethodRendered (): bool |
|
144 | 144 | { |
145 | 145 | return $this->methodRendered; |
146 | 146 | } |