@@ -68,7 +68,7 @@ |
||
68 | 68 | { |
69 | 69 | assert( |
70 | 70 | $this->schemaContainer->hasSchema($resource), |
71 | - 'No Schema found for resource `' . get_class($resource) . '`.' |
|
71 | + 'No Schema found for resource `'.get_class($resource).'`.' |
|
72 | 72 | ); |
73 | 73 | |
74 | 74 | return $this->factory->createParsedResource( |
@@ -51,7 +51,7 @@ |
||
51 | 51 | DocumentInterface::KEYWORD_ERRORS_TITLE => $error->getTitle(), |
52 | 52 | DocumentInterface::KEYWORD_ERRORS_DETAIL => $error->getDetail(), |
53 | 53 | DocumentInterface::KEYWORD_ERRORS_SOURCE => $error->getSource(), |
54 | - ]); |
|
54 | + ]); |
|
55 | 55 | |
56 | 56 | if ($error->hasMeta() === true) { |
57 | 57 | $representation[DocumentInterface::KEYWORD_ERRORS_META] = $error->getMeta(); |
@@ -819,7 +819,7 @@ |
||
819 | 819 | * @param iterable $iterable1 |
820 | 820 | * @param iterable $iterable2 |
821 | 821 | * |
822 | - * @return iterable |
|
822 | + * @return \Generator |
|
823 | 823 | */ |
824 | 824 | private function mergeIterables(iterable $iterable1, iterable $iterable2): iterable |
825 | 825 | { |
@@ -184,7 +184,7 @@ |
||
184 | 184 | { |
185 | 185 | assert( |
186 | 186 | call_user_func( |
187 | - function (array $paths): bool { |
|
187 | + function(array $paths): bool { |
|
188 | 188 | $pathsOk = true; |
189 | 189 | foreach ($paths as $path) { |
190 | 190 | $pathsOk = $pathsOk === true && is_string($path) === true && empty($path) === false; |