| Conditions | 4 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 9 | public function getCuriesLinks(): array |
|
| 38 | { |
||
| 39 | 9 | if ($this->expandCurieName) { |
|
| 40 | 9 | $this->curiesLinks['curies'][] = new Link(array_merge( |
|
| 41 | 9 | $this->expandCurieLink, |
|
| 42 | [ |
||
| 43 | 9 | 'name' => $this->expandCurieName, |
|
| 44 | 9 | 'href' => $this->owner->getSelfLink() |
|
|
|
|||
| 45 | 9 | . "?{$this->expandCurieName}={rel}", |
|
| 46 | ] |
||
| 47 | )); |
||
| 48 | |||
| 49 | 9 | foreach ($this->owner->extraFields() as $field => $value) { |
|
| 50 | 9 | if (is_int($field)) { |
|
| 51 | 9 | $field = $value; |
|
| 52 | } |
||
| 53 | |||
| 54 | 9 | $this->curiesLinks["{$this->expandCurieName}:$field"] = $field; |
|
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | 9 | return $this->curiesLinks; |
|
| 59 | } |
||
| 61 |
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.