| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | private function addJsonLdContext(ContextBuilderInterface $contextBuilder, string $resourceClass, array &$context, array $data = []): array |
||
| 31 | { |
||
| 32 | if (isset($context['jsonld_has_context'])) { |
||
| 33 | return $data; |
||
| 34 | } |
||
| 35 | |||
| 36 | $context['jsonld_has_context'] = true; |
||
| 37 | |||
| 38 | if (isset($context['jsonld_embed_context'])) { |
||
| 39 | $data['@context'] = $contextBuilder->getResourceContext($resourceClass); |
||
| 40 | |||
| 41 | return $data; |
||
| 42 | } |
||
| 43 | |||
| 44 | $data['@context'] = $contextBuilder->getResourceContextUri($resourceClass); |
||
| 45 | |||
| 46 | return $data; |
||
| 47 | } |
||
| 60 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.