@@ -21,9 +21,11 @@ |
||
21 | 21 | /** |
22 | 22 | * @throws \Assert\AssertionFailedException |
23 | 23 | */ |
24 | - public static function do() |
|
24 | + public static function do { |
|
25 | + () |
|
25 | 26 | { |
26 | 27 | $args = func_get_args(); |
28 | + } |
|
27 | 29 | /** @var static $object */ |
28 | 30 | $object = Factory::createObject([ |
29 | 31 | 'class' => static::class |
@@ -125,7 +125,9 @@ discard block |
||
125 | 125 | { |
126 | 126 | parent::__construct($config); |
127 | 127 | $this->checkPhpExtensions(); |
128 | - InitializeHtmlUniParserAction::do($this, $parser); |
|
128 | + InitializeHtmlUniParserAction::do { |
|
129 | + ($this, $parser); |
|
130 | + } |
|
129 | 131 | } |
130 | 132 | |
131 | 133 | /** |
@@ -193,7 +195,9 @@ discard block |
||
193 | 195 | */ |
194 | 196 | public function composeHtml($node): string |
195 | 197 | { |
196 | - return ComposeHtmlAction::do($this, $node); |
|
198 | + return ComposeHtmlAction::do { |
|
199 | + ($this, $node); |
|
200 | + } |
|
197 | 201 | } |
198 | 202 | |
199 | 203 | /** |
@@ -212,7 +216,9 @@ discard block |
||
212 | 216 | */ |
213 | 217 | public function getFirstValue($nodes) |
214 | 218 | { |
215 | - $val = GetFirstMatchAction::do($nodes); |
|
219 | + $val = GetFirstMatchAction::do { |
|
220 | + ($nodes); |
|
221 | + } |
|
216 | 222 | |
217 | 223 | return $this->getValue($val); |
218 | 224 | } |
@@ -224,7 +230,9 @@ discard block |
||
224 | 230 | public function getFirstValueHtml($nodes) |
225 | 231 | { |
226 | 232 | /** @var \DOMElement $val */ |
227 | - $val = GetFirstMatchAction::do($nodes); |
|
233 | + $val = GetFirstMatchAction::do { |
|
234 | + ($nodes); |
|
235 | + } |
|
228 | 236 | $html = $val->ownerDocument->saveHTML($val); |
229 | 237 | // Удаляем картинки из спарсенного текста |
230 | 238 | $html = preg_replace("/<img[^>]+\>/i", "", $html); |