Code Duplication    Length = 12-12 lines in 2 locations

src/voku/helper/EmailCheck.php 2 locations

@@ 74-85 (lines=12) @@
71
     *
72
     * @return bool
73
     */
74
    public static function isExampleDomain(string $domain): bool
75
    {
76
        if (self::$domainsExample === null) {
77
            self::$domainsExample = self::getData('domainsExample');
78
        }
79
80
        if (\in_array($domain, self::$domainsExample, true)) {
81
            return true;
82
        }
83
84
        return false;
85
    }
86
87
    /**
88
     * Check if the domain is a temporary domain.
@@ 118-129 (lines=12) @@
115
     *
116
     * @return bool
117
     */
118
    public static function isTypoInDomain(string $domain): bool
119
    {
120
        if (self::$domainsTypo === null) {
121
            self::$domainsTypo = self::getData('domainsTypo');
122
        }
123
124
        if (\in_array($domain, self::$domainsTypo, true)) {
125
            return true;
126
        }
127
128
        return false;
129
    }
130
131
    /**
132
     * Check if the email is valid.