@@ -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; |
@@ -93,6 +96,10 @@ discard block |
||
93 | 96 | // Create clean property array |
94 | 97 | $props = Linq::from($ogMetaTags) |
95 | 98 | ->select( |
99 | + |
|
100 | + /** |
|
101 | + * @param string $tag |
|
102 | + */ |
|
96 | 103 | function (\DOMElement $tag) use ($t) { |
97 | 104 | $name = strtolower(trim($tag->getAttribute($t))); |
98 | 105 | $value = trim($tag->getAttribute("content")); |
@@ -107,6 +114,10 @@ discard block |
||
107 | 114 | // Create new object of the correct type |
108 | 115 | $typeProperty = Linq::from($properties) |
109 | 116 | ->firstOrNull( |
117 | + |
|
118 | + /** |
|
119 | + * @param string $property |
|
120 | + */ |
|
110 | 121 | function (Property $property) { |
111 | 122 | return $property->key === Property::TYPE; |
112 | 123 | } |