We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -17,9 +17,9 @@ |
||
17 | 17 | public static function getValidationRules(SmartCollectionInterface $attributes): array |
18 | 18 | { |
19 | 19 | return [ |
20 | - function ($attribute, $value, $fail) use ($attributes) { |
|
20 | + function($attribute, $value, $fail) use ($attributes) { |
|
21 | 21 | if ($attributes->hasAttribute('entity') && $attributes->getAttributeValue('entity')) { |
22 | - if (! is_string($value)) { |
|
22 | + if (!is_string($value)) { |
|
23 | 23 | $fail('The '.$attribute.' should be a valid relation type string.'); |
24 | 24 | } |
25 | 25 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | public function getAttribute(string $attribute); |
10 | 10 | |
11 | - public static function make(string|array $name): SmartComponentInterface; |
|
11 | + public static function make(string | array $name): SmartComponentInterface; |
|
12 | 12 | |
13 | 13 | public static function makeOf(SmartCollectionInterface $attributes); |
14 | 14 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | interface SmartCollectionInterface |
8 | 8 | { |
9 | - public function __construct(array|string $initAttributes, array $componentAttributes, array $rules = [], array $defaults = [], array $blocked = []); |
|
9 | + public function __construct(array | string $initAttributes, array $componentAttributes, array $rules = [], array $defaults = [], array $blocked = []); |
|
10 | 10 | |
11 | 11 | public function getItemByName(string $name); |
12 | 12 |