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