Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
30 | public function renderMiniature(): string |
||
31 | { |
||
32 | $img = $this->featuredImageUrl ? |
||
33 | "<img src=\"$this->featuredImageUrl\" alt=\"$this->slug\">" : |
||
34 | ''; |
||
35 | |||
36 | return <<<HTML |
||
37 | <h1 class="post-title"><a href="$this->url">$this->title</a></h1> |
||
38 | $img |
||
39 | $this->text |
||
40 | HTML; |
||
41 | } |
||
42 | } |
||
43 |