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