|
@@ 124-129 (lines=6) @@
|
| 121 |
|
$object->assignProperties($properties, $this->debug); |
| 122 |
|
|
| 123 |
|
// Fallback for title |
| 124 |
|
if ($this->useFallbackMode && !$object->title) { |
| 125 |
|
$titleElement = $crawler->filter("title")->first(); |
| 126 |
|
if ($titleElement) { |
| 127 |
|
$object->title = trim($titleElement->text()); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
// Fallback for description |
| 132 |
|
if ($this->useFallbackMode && !$object->description) { |
|
@@ 132-137 (lines=6) @@
|
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
// Fallback for description |
| 132 |
|
if ($this->useFallbackMode && !$object->description) { |
| 133 |
|
$descriptionElement = $crawler->filter("meta[property='description']")->first(); |
| 134 |
|
if ($descriptionElement) { |
| 135 |
|
$object->description = trim($descriptionElement->attr("content")); |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
return $object; |
| 140 |
|
} |