@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @param \simple_html_dom|\simple_html_dom_node $dom |
|
| 108 | + * @param \simple_html_dom $dom |
|
| 109 | 109 | * |
| 110 | 110 | * @return \simple_html_dom_node[]|\simple_html_dom_node|null |
| 111 | 111 | */ |
@@ -114,6 +114,10 @@ discard block |
||
| 114 | 114 | return $dom->find(implode(', ', static::$listTypes), 0); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $old |
|
| 119 | + * @param string $new |
|
| 120 | + */ |
|
| 117 | 121 | protected function listByLines($old, $new) |
| 118 | 122 | { |
| 119 | 123 | /* @var $newDom \simple_html_dom */ |
@@ -172,6 +176,9 @@ discard block |
||
| 172 | 176 | return $operations; |
| 173 | 177 | } |
| 174 | 178 | |
| 179 | + /** |
|
| 180 | + * @param \simple_html_dom_node $listNode |
|
| 181 | + */ |
|
| 175 | 182 | protected function getListTextArray($listNode) |
| 176 | 183 | { |
| 177 | 184 | $output = array(); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function __construct($comparator = null) |
| 18 | 18 | { |
| 19 | 19 | if (null === $comparator) { |
| 20 | - $comparator = function ($a, $b) { |
|
| 20 | + $comparator = function($a, $b) { |
|
| 21 | 21 | return $a === $b; |
| 22 | 22 | }; |
| 23 | 23 | } |