Passed
Push — master ( fb5a2e...3c77f8 )
by Kosuha
05:33
created
src/ZendBasedParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         if ($this->getLastUrl() !== $this->getUrl()) {
89 89
             $bin = PhantomBinary::BIN;
90
-            $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js ' . $this->url;
90
+            $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js '.$this->url;
91 91
             $result = shell_exec($command);
92 92
             $this
93 93
                 ->setHtmlBuffer('<meta charset="UTF-8" />'.$result)
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
      * @return Query
122 122
      * @throws ParserInvalidConfigException
123 123
      */
124
-    public function dom($encoding = 'UTF-8', $type='curl'): Query
124
+    public function dom($encoding = 'UTF-8', $type = 'curl'): Query
125 125
     {
126
-        if ($type==='curl') {
126
+        if ($type === 'curl') {
127 127
             if (!in_array('curl', get_loaded_extensions())) {
128 128
                 throw new ParserInvalidConfigException('The curl extension in not loaded in system');
129 129
             }
Please login to merge, or discard this patch.
src/action/AbstractLogicAction.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,9 +21,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/HtmlUniParser.php 1 patch
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -126,7 +126,9 @@  discard block
 block discarded – undo
126 126
     {
127 127
         parent::__construct($config);
128 128
         $this->checkPhpExtensions();
129
-        InitializeHtmlUniParserAction::do($this, $parser);
129
+        InitializeHtmlUniParserAction::do {
130
+            ($this, $parser);
131
+        }
130 132
     }
131 133
 
132 134
     /**
@@ -194,7 +196,9 @@  discard block
 block discarded – undo
194 196
      */
195 197
     public function composeHtml($node): string
196 198
     {
197
-        return ComposeHtmlAction::do($this, $node);
199
+        return ComposeHtmlAction::do {
200
+            ($this, $node);
201
+        }
198 202
     }
199 203
 
200 204
     /**
@@ -213,7 +217,9 @@  discard block
 block discarded – undo
213 217
      */
214 218
     public function getFirstValue($nodes)
215 219
     {
216
-        $val = GetFirstMatchAction::do($nodes);
220
+        $val = GetFirstMatchAction::do {
221
+            ($nodes);
222
+        }
217 223
 
218 224
         return $this->getValue($val);
219 225
     }
@@ -226,7 +232,9 @@  discard block
 block discarded – undo
226 232
     public function getFirstValueHtml($nodes)
227 233
     {
228 234
         /** @var \DOMElement $val */
229
-        $val = GetFirstMatchAction::do($nodes);
235
+        $val = GetFirstMatchAction::do {
236
+            ($nodes);
237
+        }
230 238
         $html = $val->ownerDocument->saveHTML($val);
231 239
         // Удаляем картинки из спарсенного текста
232 240
         $html = preg_replace("/<img[^>]+\>/i", "", $html);
@@ -243,10 +251,14 @@  discard block
 block discarded – undo
243 251
     {
244 252
         $result = null;
245 253
         if ($val instanceof \DOMAttr) {
246
-            $result = ValueStubAction::do($val, 'value');
254
+            $result = ValueStubAction::do {
255
+                ($val, 'value');
256
+            }
247 257
         }
248 258
         if ($val instanceof \DOMElement) {
249
-            $result = ValueStubAction::do($val, 'nodeValue');
259
+            $result = ValueStubAction::do {
260
+                ($val, 'nodeValue');
261
+            }
250 262
         }
251 263
 
252 264
         return $this->proccessValue(trim($result));
Please login to merge, or discard this patch.