@@ -33,6 +33,9 @@ |
||
33 | 33 | ]); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param boolean $absolute |
|
38 | + */ |
|
36 | 39 | private function getUrl($absolute) |
37 | 40 | { |
38 | 41 | $url = '/'; |
@@ -9,6 +9,9 @@ discard block |
||
9 | 9 | |
10 | 10 | abstract class HtmlUtils |
11 | 11 | { |
12 | + /** |
|
13 | + * @param string $xpathQuery |
|
14 | + */ |
|
12 | 15 | public static function htmlXPath(\DOMDocument &$DOMDocument, $html, $xpathQuery) |
13 | 16 | { |
14 | 17 | $html = self::normalizeHTML($html); |
@@ -38,6 +41,9 @@ discard block |
||
38 | 41 | return $xpath->query($xpathQuery); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @return string |
|
46 | + */ |
|
41 | 47 | private static function normalizeHTML($html) |
42 | 48 | { |
43 | 49 | if (strpos($html, '<body>' === false) || strpos($html, '</body>') === false) |
@@ -271,7 +271,7 @@ |
||
271 | 271 | |
272 | 272 | /** |
273 | 273 | * @param string $filePath |
274 | - * @param mixed $newlyCreate |
|
274 | + * @param boolean $newlyCreate |
|
275 | 275 | */ |
276 | 276 | private function creationWatcher($filePath, $newlyCreate = true) |
277 | 277 | { |