| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function getElementsForSearch() |
||
| 32 | { |
||
| 33 | $output = []; |
||
| 34 | foreach ($this->owner->hasOne() as $key => $class) { |
||
| 35 | if ($class !== ElementalArea::class) { |
||
| 36 | continue; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** @var ElementalArea $area */ |
||
| 40 | $area = $this->owner->$key(); |
||
| 41 | if ($area) { |
||
| 42 | $output[] = strip_tags($area->forTemplate()); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | return implode($output); |
||
| 46 | } |
||
| 64 |