| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 17 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 4 | private function setMeta(): void |
|
| 59 | { |
||
| 60 | 4 | $this->meta = Meta::create() |
|
| 61 | 4 | ->title( |
|
| 62 | 4 | $this->variables['meta']['title'] |
|
| 63 | 3 | ?? $this->variables['title'] |
|
| 64 | 4 | ?? null |
|
| 65 | ) |
||
| 66 | 4 | ->description( |
|
| 67 | 4 | $this->variables['meta']['description'] |
|
| 68 | 3 | ?? $this->variables['description'] |
|
| 69 | 4 | ?? null |
|
| 70 | ) |
||
| 71 | 4 | ->link('next', |
|
| 72 | 4 | $this->variables['_pagination']['next']['url'] |
|
| 73 | 4 | ?? null |
|
| 74 | ) |
||
| 75 | 4 | ->link('prev', |
|
| 76 | 4 | $this->variables['_pagination']['previous']['url'] |
|
| 77 | 4 | ?? null |
|
| 78 | ); |
||
| 79 | 4 | } |
|
| 80 | } |
||
| 81 |