| @@ 56-63 (lines=8) @@ | ||
| 53 | /** |
|
| 54 | * @return mixed |
|
| 55 | */ |
|
| 56 | public function metaDescription() |
|
| 57 | { |
|
| 58 | $description = $this->document->querySelector('meta[name="description"]'); |
|
| 59 | if ($description === null) { |
|
| 60 | return null; |
|
| 61 | } |
|
| 62 | return $description->attr('content'); |
|
| 63 | } |
|
| 64 | ||
| 65 | /** |
|
| 66 | * @return mixed |
|
| @@ 83-90 (lines=8) @@ | ||
| 80 | /** |
|
| 81 | * @return mixed |
|
| 82 | */ |
|
| 83 | public function metaTitle() |
|
| 84 | { |
|
| 85 | $title = $this->document->querySelector('meta[name="title"]'); |
|
| 86 | if ($title === null) { |
|
| 87 | return null; |
|
| 88 | } |
|
| 89 | return $title->attr('content'); |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @return array |
|