Passed
Push — master ( 229bc5...5b891d )
by Dispositif
15:06
created
src/Application/Utils/HttpUtil.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,20 +42,20 @@
 block discarded – undo
42 42
 
43 43
         $charset = self::extractCharset($html) ?? 'WINDOWS-1252';
44 44
         if (empty($charset)) {
45
-            throw new DomainException('normalized html error and no charset found : ' . $url);
45
+            throw new DomainException('normalized html error and no charset found : '.$url);
46 46
         }
47 47
         try {
48 48
             // PHP Notice:  iconv(): Detected an illegal character in input string
49 49
             $html2 = @iconv($charset, 'UTF-8//TRANSLIT', $html);
50 50
             if (false === $html2) {
51
-                throw new DomainException("error iconv : $charset to UTF-8 on " . $url);
51
+                throw new DomainException("error iconv : $charset to UTF-8 on ".$url);
52 52
             }
53 53
             $html2 = Normalizer::normalize($html2);
54 54
             if (!is_string($html2)) {
55
-                throw new DomainException("error normalizer : $charset to UTF-8 on " . $url);
55
+                throw new DomainException("error normalizer : $charset to UTF-8 on ".$url);
56 56
             }
57 57
         } catch (Throwable $e) {
58
-            throw new DomainException("error converting : $charset to UTF-8 on " . $url, $e->getCode(), $e);
58
+            throw new DomainException("error converting : $charset to UTF-8 on ".$url, $e->getCode(), $e);
59 59
         }
60 60
 
61 61
         return $html2;
Please login to merge, or discard this patch.