Passed
Push — master ( 2bc959...7c53b4 )
by Alexey
03:55 queued 11s
created
src/Util/ScraperUtil.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         if (preg_match_all('/>AF_initDataCallback\((.*?)\);<\/script/s', $html, $matches)) {
29 29
             $scripts = array_reduce(
30 30
                 $matches[0],
31
-                static function ($carry, $item) {
31
+                static function($carry, $item) {
32 32
                     if (
33 33
                         preg_match("/(ds:.*?)'/", $item, $keyMatch) &&
34 34
                         preg_match('/data:([\s\S]*?)(, }\);<\/|, sideChannel:)/', $item, $valueMatch)
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
         $doc = new \DOMDocument();
56 56
         $internalErrors = libxml_use_internal_errors(true);
57 57
 
58
-        if (!$doc->loadHTML('<?xml encoding="utf-8"?>' . $html)) {
58
+        if (!$doc->loadHTML('<?xml encoding="utf-8"?>'.$html)) {
59 59
             throw new
60 60
             \RuntimeException(
61
-                'error load html: ' . $html
61
+                'error load html: '.$html
62 62
             );
63 63
         }
64 64
         libxml_use_internal_errors($internalErrors);
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
                 case 'p':
109 109
                 case 'ul':
110 110
                 case 'div':
111
-                    $text = "\n\n" . $text . "\n\n";
111
+                    $text = "\n\n".$text."\n\n";
112 112
                     break;
113 113
 
114 114
                 case 'li':
115
-                    $text = '- ' . $text . "\n";
115
+                    $text = '- '.$text."\n";
116 116
                     break;
117 117
 
118 118
                 case 'br':
Please login to merge, or discard this patch.