Completed
Branch master (f6bed6)
by Kevin
11:46
created
src/Tokens/Element.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
         $this->name = null;
25 25
     }
26 26
 
27
+    /**
28
+     * @param string $html
29
+     */
27 30
     public function isClosingElementImplied($html)
28 31
     {
29 32
         $name = $this->parseElementName($html);
@@ -38,6 +41,9 @@  discard block
 block discarded – undo
38 41
         return preg_match("/^<[a-zA-Z]/", $html) === 1;
39 42
     }
40 43
 
44
+    /**
45
+     * @param string $html
46
+     */
41 47
     public function parse($html)
42 48
     {
43 49
         $this->name = $this->parseElementName($html);
@@ -71,6 +77,9 @@  discard block
 block discarded – undo
71 77
         return $this->parseContents($remainingHtml);
72 78
     }
73 79
 
80
+    /**
81
+     * @param string $html
82
+     */
74 83
     private function parseAttribute($html)
75 84
     {
76 85
         // Will match the first entire name/value attribute pair.
@@ -119,6 +128,9 @@  discard block
 block discarded – undo
119 128
         return substr($html, $posOfAttribute + strlen($attributeMatches[2]));
120 129
     }
121 130
 
131
+    /**
132
+     * @param string $html
133
+     */
122 134
     private function parseContents($html)
123 135
     {
124 136
         $remainingHtml = trim($html);
Please login to merge, or discard this patch.