@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | class CollectionCheck implements FluentCheck |
17 | 17 | { |
18 | - use TypeCheck,ConstraintCheck, WithMessage; |
|
18 | + use TypeCheck, ConstraintCheck, WithMessage; |
|
19 | 19 | /** |
20 | 20 | * @var iterable |
21 | 21 | */ |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $array = \array_udiff( |
24 | 24 | $array, |
25 | 25 | [$element], |
26 | - function ($first, $second) { |
|
26 | + function($first, $second) { |
|
27 | 27 | return $first <=> $second; |
28 | 28 | } |
29 | 29 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | public function evaluate($other, string $description = '', bool $returnResult = false): ?bool |
21 | 21 | { |
22 | - $other = ArrayUtility::toArray($other); |
|
22 | + $other = ArrayUtility::toArray($other); |
|
23 | 23 | $set = ArrayUtility::toArray($this->set); |
24 | 24 | |
25 | 25 | if (ArrayUtility::isAssociative($other)) { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | public static function isAssociative(array $array) |
9 | 9 | { |
10 | 10 | $size = \count($array); |
11 | - $filteredKeys = \array_filter(\array_keys($array), function ($int) {return $int === (int) $int;}); |
|
11 | + $filteredKeys = \array_filter(\array_keys($array), function($int) {return $int === (int) $int; }); |
|
12 | 12 | return \count($filteredKeys) !== $size; |
13 | 13 | } |
14 | 14 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | //type cast $other & $this->subset as an array to allow |
24 | 24 | //support in standard array functions. |
25 | - $other = ArrayUtility::toArray($other); |
|
25 | + $other = ArrayUtility::toArray($other); |
|
26 | 26 | $set = ArrayUtility::toArray($this->set); |
27 | 27 | |
28 | 28 | if (ArrayUtility::isAssociative($other)) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $validator = new Validator(); |
45 | 45 | $validator->check($other, $this->schema); |
46 | 46 | |
47 | - return \implode("\n", \array_map(function ($error) { |
|
47 | + return \implode("\n", \array_map(function($error) { |
|
48 | 48 | return \sprintf("[%s] %s", $error['property'], $error['message']); |
49 | 49 | }, $validator->getErrors())); |
50 | 50 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | $replace = ''; |
30 | 30 | if ($this->withHeaders || $this->withContent) { |
31 | 31 | $properties = parent::toArray($value); |
32 | - $whitespace = \str_repeat(' ', (int)(4 * ($indentation + 1))); |
|
32 | + $whitespace = \str_repeat(' ', (int) (4 * ($indentation + 1))); |
|
33 | 33 | if (isset($properties['headers']) && \count($properties['headers'])) { |
34 | 34 | $replace = "\n$whitespace'headers' (\n"; |
35 | 35 | foreach ($properties['headers'] as $name => $values) { |