@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | return $this->attr[$namespace]; |
24 | 24 | } |
25 | 25 | |
26 | - public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface|null |
|
26 | + public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface | null |
|
27 | 27 | { |
28 | 28 | return $this->getAttributeCollection($namespace)->get($name); |
29 | 29 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function getAttributesString(string $namespace = 'general'): string |
104 | 104 | { |
105 | - $attributesStringed = (string)$this->getAttributeCollection($namespace); |
|
105 | + $attributesStringed = (string) $this->getAttributeCollection($namespace); |
|
106 | 106 | |
107 | 107 | if (empty($attributesStringed)) { |
108 | 108 | return ''; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * @return $this |
116 | 116 | */ |
117 | - public function removeAttribute(string|AttributeInterface $attribute, string $namespace = 'general') |
|
117 | + public function removeAttribute(string | AttributeInterface $attribute, string $namespace = 'general') |
|
118 | 118 | { |
119 | 119 | $this->getAttributeCollection($namespace)->remove($attribute); |
120 | 120 | return $this; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | protected string $type = 'number'; |
21 | 21 | |
22 | 22 | |
23 | - public function setMin(string|int $min): self |
|
23 | + public function setMin(string | int $min): self |
|
24 | 24 | { |
25 | 25 | Assert::numeric($min); |
26 | 26 | $min = (int) $min; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | |
32 | - public function setMax(int|string $max): self |
|
32 | + public function setMax(int | string $max): self |
|
33 | 33 | { |
34 | 34 | Assert::numeric($max); |
35 | 35 | $max = (int) $max; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param numeric $step |
43 | 43 | * @return $this |
44 | 44 | */ |
45 | - public function setStep(float|int|string $step): self |
|
45 | + public function setStep(float | int | string $step): self |
|
46 | 46 | { |
47 | 47 | Assert::numeric($step); |
48 | 48 | $this->setAttribute(AttributeFactory::create('step', $step)); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | protected string $type = 'range'; |
21 | 21 | |
22 | - public function setMin(string|int $min): self |
|
22 | + public function setMin(string | int $min): self |
|
23 | 23 | { |
24 | 24 | Assert::numeric($min); |
25 | 25 | $min = (int) $min; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | |
31 | - public function setMax(int|string $max): self |
|
31 | + public function setMax(int | string $max): self |
|
32 | 32 | { |
33 | 33 | Assert::numeric($max); |
34 | 34 | $max = (int) $max; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * @param numeric $step |
42 | 42 | * @return $this |
43 | 43 | */ |
44 | - public function setStep(float|int|string $step): self |
|
44 | + public function setStep(float | int | string $step): self |
|
45 | 45 | { |
46 | 46 | Assert::numeric($step); |
47 | 47 | $this->setAttribute(AttributeFactory::create('step', $step)); |