Completed
Pull Request — master (#17)
by
unknown
05:46
created
src/Consumer.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.