| Conditions | 5 |
| Paths | 5 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | protected function initSchemaOrg(): void |
||
| 15 | { |
||
| 16 | if (method_exists($this, 'schemaOrg')) { |
||
| 17 | if ($this instanceof Page) { |
||
| 18 | $page = $this; |
||
| 19 | } else { |
||
| 20 | $page = $this->page(); |
||
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | if ($page && count($this->_componentPath) <= config('storyblok.schema_org_depth')) { |
||
| 24 | $this->addschemaOrg($page); |
||
| 25 | } |
||
| 62 |