Code Duplication    Length = 6-7 lines in 2 locations

source/DomComponentsByDanielGPwithCDN.php 2 locations

@@ 70-75 (lines=6) @@
67
        } else {
68
            $patternFound = null;
69
        }
70
        if (is_null($patternFound)) {
71
            $patternFound = [
72
                false,
73
                filter_var($cssFileName, FILTER_SANITIZE_STRING),
74
            ];
75
        }
76
        return $patternFound;
77
    }
78
@@ 124-130 (lines=7) @@
121
        } else {
122
            $patternFound = null;
123
        }
124
        if (is_null($patternFound)) {
125
            $patternFound = [
126
                false,
127
                filter_var($jsFileName, FILTER_SANITIZE_STRING),
128
                '',
129
            ];
130
        }
131
        return $patternFound;
132
    }
133