@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * @return string[] |
71 | 71 | */ |
72 | - public function getParentNames(): ?array |
|
72 | + public function getParentNames(): ? array |
|
73 | 73 | { |
74 | 74 | return $this->parentNames; |
75 | 75 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AmaTeam\ElasticSearch\API; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AmaTeam\ElasticSearch\API; |
6 | 6 |
@@ -82,7 +82,7 @@ |
||
82 | 82 | } |
83 | 83 | $lines = [sprintf('Entity metadata `%s` has failed validation:', $entity->getName())]; |
84 | 84 | foreach ($violations as $violation) { |
85 | - $lines[] = $violation->getPropertyPath() . ': ' . $violation->getMessage(); |
|
85 | + $lines[] = $violation->getPropertyPath().': '.$violation->getMessage(); |
|
86 | 86 | } |
87 | 87 | throw new ValidationException(implode(PHP_EOL, $lines), $violations); |
88 | 88 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | public static function remap(ConstraintViolationInterface $violation, $root, string $path): ConstraintViolation |
11 | 11 | { |
12 | - $propertyPath = $path . '.' . $violation->getPropertyPath(); |
|
12 | + $propertyPath = $path.'.'.$violation->getPropertyPath(); |
|
13 | 13 | $cause = null; |
14 | 14 | $constraint = null; |
15 | 15 | if ($violation instanceof ConstraintViolation) { |