Completed
Pull Request — master (#10)
by Lars
01:24
created
src/voku/helper/HtmlMin.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -497,72 +497,72 @@
 block discarded – undo
497 497
     return \in_array($tag_name, self::$optional_end_tags, true)
498 498
            ||
499 499
            (
500
-               $tag_name == 'li'
500
+                $tag_name == 'li'
501 501
                &&
502 502
                (
503
-                   $nextSibling === null
503
+                    $nextSibling === null
504 504
                    ||
505 505
                    (
506
-                       $nextSibling instanceof \DOMElement
506
+                        $nextSibling instanceof \DOMElement
507 507
                        &&
508 508
                        $nextSibling->tagName == $tag_name
509
-                   )
510
-               )
511
-           )
509
+                    )
510
+                )
511
+            )
512 512
            ||
513 513
            (
514
-               $tag_name == 'p'
514
+                $tag_name == 'p'
515 515
                &&
516 516
                (
517
-                   (
518
-                       $nextSibling === null
517
+                    (
518
+                        $nextSibling === null
519 519
                        &&
520 520
                        (
521
-                           $node->parentNode !== null
521
+                            $node->parentNode !== null
522 522
                            &&
523 523
                            $node->parentNode->tagName != 'a'
524
-                       )
525
-                   )
524
+                        )
525
+                    )
526 526
                    ||
527 527
                    (
528
-                       $nextSibling instanceof \DOMElement
528
+                        $nextSibling instanceof \DOMElement
529 529
                        &&
530 530
                        \in_array(
531
-                           $nextSibling->tagName,
532
-                           [
533
-                               'address',
534
-                               'article',
535
-                               'aside',
536
-                               'blockquote',
537
-                               'dir',
538
-                               'div',
539
-                               'dl',
540
-                               'fieldset',
541
-                               'footer',
542
-                               'form',
543
-                               'h1',
544
-                               'h2',
545
-                               'h3',
546
-                               'h4',
547
-                               'h5',
548
-                               'h6',
549
-                               'header',
550
-                               'hgroup',
551
-                               'hr',
552
-                               'menu',
553
-                               'nav',
554
-                               'ol',
555
-                               'p',
556
-                               'pre',
557
-                               'section',
558
-                               'table',
559
-                               'ul',
560
-                           ],
561
-                           true
562
-                       )
563
-                   )
564
-               )
565
-           );
531
+                            $nextSibling->tagName,
532
+                            [
533
+                                'address',
534
+                                'article',
535
+                                'aside',
536
+                                'blockquote',
537
+                                'dir',
538
+                                'div',
539
+                                'dl',
540
+                                'fieldset',
541
+                                'footer',
542
+                                'form',
543
+                                'h1',
544
+                                'h2',
545
+                                'h3',
546
+                                'h4',
547
+                                'h5',
548
+                                'h6',
549
+                                'header',
550
+                                'hgroup',
551
+                                'hr',
552
+                                'menu',
553
+                                'nav',
554
+                                'ol',
555
+                                'p',
556
+                                'pre',
557
+                                'section',
558
+                                'table',
559
+                                'ul',
560
+                            ],
561
+                            true
562
+                        )
563
+                    )
564
+                )
565
+            );
566 566
   }
567 567
 
568 568
   protected function domNodeToString(\DOMNode $node): string
Please login to merge, or discard this patch.