Completed
Push — master ( 67d39f...8e72ae )
by Lars
01:46
created
src/voku/helper/HtmlMin.php 1 patch
Indentation   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -761,214 +761,214 @@  discard block
 block discarded – undo
761 761
         return \in_array($tag_name, self::$optional_end_tags, true)
762 762
                ||
763 763
                (
764
-                   $tag_name === 'li'
764
+                    $tag_name === 'li'
765 765
                    &&
766 766
                    (
767
-                       $nextSibling === null
767
+                        $nextSibling === null
768 768
                        ||
769 769
                        (
770
-                           $nextSibling instanceof \DOMElement
770
+                            $nextSibling instanceof \DOMElement
771 771
                            &&
772 772
                            $nextSibling->tagName === 'li'
773
-                       )
774
-                   )
775
-               )
773
+                        )
774
+                    )
775
+                )
776 776
                ||
777 777
                (
778
-                   $tag_name === 'optgroup'
778
+                    $tag_name === 'optgroup'
779 779
                    &&
780 780
                    (
781
-                       $nextSibling === null
781
+                        $nextSibling === null
782 782
                        ||
783 783
                        (
784
-                           $nextSibling instanceof \DOMElement
784
+                            $nextSibling instanceof \DOMElement
785 785
                            &&
786 786
                            $nextSibling->tagName === 'optgroup'
787
-                       )
788
-                   )
789
-               )
787
+                        )
788
+                    )
789
+                )
790 790
                ||
791 791
                (
792
-                   $tag_name === 'rp'
792
+                    $tag_name === 'rp'
793 793
                    &&
794 794
                    (
795
-                       $nextSibling === null
795
+                        $nextSibling === null
796 796
                        ||
797 797
                        (
798
-                           $nextSibling instanceof \DOMElement
798
+                            $nextSibling instanceof \DOMElement
799 799
                            &&
800 800
                            (
801
-                               $nextSibling->tagName === 'rp'
801
+                                $nextSibling->tagName === 'rp'
802 802
                                ||
803 803
                                $nextSibling->tagName === 'rt'
804
-                           )
805
-                       )
806
-                   )
807
-               )
804
+                            )
805
+                        )
806
+                    )
807
+                )
808 808
                ||
809 809
                (
810
-                   $tag_name === 'tr'
810
+                    $tag_name === 'tr'
811 811
                    &&
812 812
                    (
813
-                       $nextSibling === null
813
+                        $nextSibling === null
814 814
                        ||
815 815
                        (
816
-                           $nextSibling instanceof \DOMElement
816
+                            $nextSibling instanceof \DOMElement
817 817
                            &&
818 818
                            $nextSibling->tagName === 'tr'
819
-                       )
820
-                   )
821
-               )
819
+                        )
820
+                    )
821
+                )
822 822
                ||
823 823
                (
824
-                   $tag_name === 'source'
824
+                    $tag_name === 'source'
825 825
                    &&
826 826
                    (
827
-                       $parent_tag_name === 'audio'
827
+                        $parent_tag_name === 'audio'
828 828
                        ||
829 829
                        $parent_tag_name === 'video'
830 830
                        ||
831 831
                        $parent_tag_name === 'picture'
832 832
                        ||
833 833
                        $parent_tag_name === 'source'
834
-                   )
834
+                    )
835 835
                    &&
836 836
                    (
837
-                       $nextSibling === null
837
+                        $nextSibling === null
838 838
                        ||
839 839
                        (
840
-                           $nextSibling instanceof \DOMElement
840
+                            $nextSibling instanceof \DOMElement
841 841
                            &&
842 842
                            $nextSibling->tagName === 'source'
843
-                       )
844
-                   )
845
-               )
843
+                        )
844
+                    )
845
+                )
846 846
                ||
847 847
                (
848
-                   (
849
-                       $tag_name === 'td'
848
+                    (
849
+                        $tag_name === 'td'
850 850
                        ||
851 851
                        $tag_name === 'th'
852
-                   )
852
+                    )
853 853
                    &&
854 854
                    (
855
-                       $nextSibling === null
855
+                        $nextSibling === null
856 856
                        ||
857 857
                        (
858
-                           $nextSibling instanceof \DOMElement
858
+                            $nextSibling instanceof \DOMElement
859 859
                            &&
860 860
                            (
861
-                               $nextSibling->tagName === 'td'
861
+                                $nextSibling->tagName === 'td'
862 862
                                ||
863 863
                                $nextSibling->tagName === 'th'
864
-                           )
865
-                       )
866
-                   )
867
-               )
864
+                            )
865
+                        )
866
+                    )
867
+                )
868 868
                ||
869 869
                (
870
-                   (
871
-                       $tag_name === 'dd'
870
+                    (
871
+                        $tag_name === 'dd'
872 872
                        ||
873 873
                        $tag_name === 'dt'
874
-                   )
874
+                    )
875 875
                    &&
876 876
                    (
877
-                       $nextSibling === null
877
+                        $nextSibling === null
878 878
                        ||
879 879
                        (
880
-                           $nextSibling instanceof \DOMElement
880
+                            $nextSibling instanceof \DOMElement
881 881
                            &&
882 882
                            (
883
-                               $nextSibling->tagName === 'dd'
883
+                                $nextSibling->tagName === 'dd'
884 884
                                ||
885 885
                                $nextSibling->tagName === 'dt'
886
-                           )
887
-                       )
888
-                   )
889
-               )
886
+                            )
887
+                        )
888
+                    )
889
+                )
890 890
                ||
891 891
                (
892
-                   $tag_name === 'option'
892
+                    $tag_name === 'option'
893 893
                    &&
894 894
                    (
895
-                       $nextSibling === null
895
+                        $nextSibling === null
896 896
                        ||
897 897
                        (
898
-                           $nextSibling instanceof \DOMElement
898
+                            $nextSibling instanceof \DOMElement
899 899
                            &&
900 900
                            (
901
-                               $nextSibling->tagName === 'option'
901
+                                $nextSibling->tagName === 'option'
902 902
                                ||
903 903
                                $nextSibling->tagName === 'optgroup'
904
-                           )
905
-                       )
906
-                   )
907
-               )
904
+                            )
905
+                        )
906
+                    )
907
+                )
908 908
                ||
909 909
                (
910
-                   $tag_name === 'p'
910
+                    $tag_name === 'p'
911 911
                    &&
912 912
                    (
913
-                       (
914
-                           $nextSibling === null
913
+                        (
914
+                            $nextSibling === null
915 915
                            &&
916 916
                            $node->parentNode !== null
917 917
                            &&
918 918
                            !\in_array(
919
-                               $node->parentNode->nodeName,
920
-                               [
921
-                                   'a',
922
-                                   'audio',
923
-                                   'del',
924
-                                   'ins',
925
-                                   'map',
926
-                                   'noscript',
927
-                                   'video',
928
-                               ],
929
-                               true
930
-                           )
931
-                       )
919
+                                $node->parentNode->nodeName,
920
+                                [
921
+                                    'a',
922
+                                    'audio',
923
+                                    'del',
924
+                                    'ins',
925
+                                    'map',
926
+                                    'noscript',
927
+                                    'video',
928
+                                ],
929
+                                true
930
+                            )
931
+                        )
932 932
                        ||
933 933
                        (
934
-                           $nextSibling instanceof \DOMElement
934
+                            $nextSibling instanceof \DOMElement
935 935
                            &&
936 936
                            \in_array(
937
-                               $nextSibling->tagName,
938
-                               [
939
-                                   'address',
940
-                                   'article',
941
-                                   'aside',
942
-                                   'blockquote',
943
-                                   'dir',
944
-                                   'div',
945
-                                   'dl',
946
-                                   'fieldset',
947
-                                   'footer',
948
-                                   'form',
949
-                                   'h1',
950
-                                   'h2',
951
-                                   'h3',
952
-                                   'h4',
953
-                                   'h5',
954
-                                   'h6',
955
-                                   'header',
956
-                                   'hgroup',
957
-                                   'hr',
958
-                                   'menu',
959
-                                   'nav',
960
-                                   'ol',
961
-                                   'p',
962
-                                   'pre',
963
-                                   'section',
964
-                                   'table',
965
-                                   'ul',
966
-                               ],
967
-                               true
968
-                           )
969
-                       )
970
-                   )
971
-               );
937
+                                $nextSibling->tagName,
938
+                                [
939
+                                    'address',
940
+                                    'article',
941
+                                    'aside',
942
+                                    'blockquote',
943
+                                    'dir',
944
+                                    'div',
945
+                                    'dl',
946
+                                    'fieldset',
947
+                                    'footer',
948
+                                    'form',
949
+                                    'h1',
950
+                                    'h2',
951
+                                    'h3',
952
+                                    'h4',
953
+                                    'h5',
954
+                                    'h6',
955
+                                    'header',
956
+                                    'hgroup',
957
+                                    'hr',
958
+                                    'menu',
959
+                                    'nav',
960
+                                    'ol',
961
+                                    'p',
962
+                                    'pre',
963
+                                    'section',
964
+                                    'table',
965
+                                    'ul',
966
+                                ],
967
+                                true
968
+                            )
969
+                        )
970
+                    )
971
+                );
972 972
     }
973 973
 
974 974
     protected function domNodeToString(\DOMNode $node): string
@@ -1097,9 +1097,9 @@  discard block
 block discarded – undo
1097 1097
                 }
1098 1098
 
1099 1099
                 return '<!DOCTYPE ' . $child->name . ''
1100
-                       . ($child->publicId ? ' ' . $tmpTypePublic . ' "' . $child->publicId . '"' : '')
1101
-                       . ($child->systemId ? ' ' . $tmpTypeSystem . ' "' . $child->systemId . '"' : '')
1102
-                       . '>';
1100
+                        . ($child->publicId ? ' ' . $tmpTypePublic . ' "' . $child->publicId . '"' : '')
1101
+                        . ($child->systemId ? ' ' . $tmpTypeSystem . ' "' . $child->systemId . '"' : '')
1102
+                        . '>';
1103 1103
             }
1104 1104
         }
1105 1105
 
Please login to merge, or discard this patch.