Completed
Push — master ( d1a6e0...a703a1 )
by Lars
02:13
created
src/voku/helper/SimpleHtmlDom.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -701,7 +701,7 @@
 block discarded – undo
701 701
    *
702 702
    * @param string $name <p>The name of the html-attribute.</p>
703 703
    *
704
-   * @return mixed
704
+   * @return SimpleHtmlDom
705 705
    */
706 706
   public function removeAttribute(string $name)
707 707
   {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
         $string = str_replace(array('<head>', '</head>'), '', $string);
568 568
       }
569 569
     } else {
570
-      $string = (string)$input;
570
+      $string = (string) $input;
571 571
     }
572 572
 
573 573
     return
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDomNodeBlank.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
Please login to merge, or discard this patch.
src/voku/helper/SelectorConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDomNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
Please login to merge, or discard this patch.
src/voku/helper/SimpleHtmlDomNodeInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
Please login to merge, or discard this patch.
src/voku/helper/HtmlDomParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace voku\helper;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
    * @var string[][]
52 52
    */
53 53
   protected static $domLinkReplaceHelper = [
54
-      'orig' => ['[', ']', '{', '}',],
54
+      'orig' => ['[', ']', '{', '}', ],
55 55
       'tmp'  => [
56 56
           '!!!!SIMPLE_HTML_DOM__VOKU__SQUARE_BRACKET_LEFT!!!!',
57 57
           '!!!!SIMPLE_HTML_DOM__VOKU__SQUARE_BRACKET_RIGHT!!!!',
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     }
158 158
 
159 159
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
160
-    throw new BadMethodCallException('Method does not exist: ' . $name);
160
+    throw new BadMethodCallException('Method does not exist: '.$name);
161 161
   }
162 162
 
163 163
   /**
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
       if (!empty($linksOld[1])) {
276 276
         $linksOld = $linksOld[1];
277
-        foreach ((array)$linksOld as $linkKey => $linkOld) {
277
+        foreach ((array) $linksOld as $linkKey => $linkOld) {
278 278
           $linksNew[$linkKey] = \str_replace(
279 279
               self::$domLinkReplaceHelper['orig'],
280 280
               self::$domLinkReplaceHelper['tmp'],
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
       $xmlHackUsed = false;
383 383
       if (\stripos('<?xml', $html) !== 0) {
384 384
         $xmlHackUsed = true;
385
-        $html = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $html;
385
+        $html = '<?xml encoding="'.$this->getEncoding().'" ?>'.$html;
386 386
       }
387 387
 
388 388
       $html = self::replaceToPreserveHtmlEntities($html);
Please login to merge, or discard this patch.