@@ -80,6 +80,9 @@ discard block |
||
80 | 80 | return $page; |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $content |
|
85 | + */ |
|
83 | 86 | private function extractOpenGraphData($content) |
84 | 87 | { |
85 | 88 | $crawler = new Crawler($content); |
@@ -92,6 +95,10 @@ discard block |
||
92 | 95 | // Create clean property array |
93 | 96 | $props = Linq::from($ogMetaTags) |
94 | 97 | ->select( |
98 | + |
|
99 | + /** |
|
100 | + * @param string $tag |
|
101 | + */ |
|
95 | 102 | function (\DOMElement $tag) use ($t) { |
96 | 103 | $name = strtolower(trim($tag->getAttribute($t))); |
97 | 104 | $value = trim($tag->getAttribute("content")); |
@@ -106,6 +113,10 @@ discard block |
||
106 | 113 | // Create new object of the correct type |
107 | 114 | $typeProperty = Linq::from($properties) |
108 | 115 | ->firstOrNull( |
116 | + |
|
117 | + /** |
|
118 | + * @param string $property |
|
119 | + */ |
|
109 | 120 | function (Property $property) { |
110 | 121 | return $property->key === Property::TYPE; |
111 | 122 | } |