| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | protected function findTitleFromMarkdownHeadings(): ?string |
||
| 40 | { |
||
| 41 | if ($this->page instanceof AbstractMarkdownPage) { |
||
| 42 | foreach ($this->page->markdown()->toArray() as $line) { |
||
|
|
|||
| 43 | if (str_starts_with($line, '# ')) { |
||
| 44 | return trim(substr($line, 2), ' '); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | return null; |
||
| 50 | } |
||
| 52 |