@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | return $this->attributes[$namespace]; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface|null |
|
| 27 | + public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface | null |
|
| 28 | 28 | { |
| 29 | 29 | return $this->getAttributeCollection($namespace)->get($name); |
| 30 | 30 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | public function getAttributesString(string $namespace = 'general'): string |
| 90 | 90 | { |
| 91 | - $attributesStringed = (string)$this->getAttributeCollection($namespace); |
|
| 91 | + $attributesStringed = (string) $this->getAttributeCollection($namespace); |
|
| 92 | 92 | |
| 93 | 93 | if (empty($attributesStringed)) { |
| 94 | 94 | return ''; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | return ' ' . $attributesStringed; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - public function removeAttribute(string|AttributeInterface $attribute, string $namespace = 'general'): static |
|
| 100 | + public function removeAttribute(string | AttributeInterface $attribute, string $namespace = 'general'): static |
|
| 101 | 101 | { |
| 102 | 102 | $this->getAttributeCollection($namespace)->remove($attribute); |
| 103 | 103 | return $this; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * Из-за того что php преобразует строки, содержащие целое число к int, приходится добавлять |
| 49 | 49 | * пробел либо в начало, либо в конец ключа. В итоге пробелы в начале и в конце удаляются автоматически. |
| 50 | 50 | */ |
| 51 | - public function fill(array|Closure $data, bool $useTitleAsValue = false): static |
|
| 51 | + public function fill(array | Closure $data, bool $useTitleAsValue = false): static |
|
| 52 | 52 | { |
| 53 | 53 | if ($data instanceof Closure) { |
| 54 | 54 | /** @var mixed $data */ |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function getParentName(): string; |
| 18 | 18 | |
| 19 | - public function fill(array|\Closure $data, bool $useTitleAsValue = false): static; |
|
| 19 | + public function fill(array | \Closure $data, bool $useTitleAsValue = false): static; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @psalm-return array<array-key, Element&Fillable> |