Completed
Push — master ( 2c4486...36c3d6 )
by Kosuha
04:23
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   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.