Code Duplication    Length = 12-12 lines in 3 locations

src/voku/helper/EmailCheck.php 3 locations

@@ 168-179 (lines=12) @@
165
   *
166
   * @return bool
167
   */
168
  public static function isExampleDomain(string $domain): bool
169
  {
170
    if (self::$domainsExample === null) {
171
      self::$domainsExample = self::getData('domainsExample');
172
    }
173
174
    if (\in_array($domain, self::$domainsExample, true)) {
175
      return true;
176
    }
177
178
    return false;
179
  }
180
181
  /**
182
   * Check if the domain has a typo.
@@ 188-199 (lines=12) @@
185
   *
186
   * @return bool
187
   */
188
  public static function isTypoInDomain(string $domain): bool
189
  {
190
    if (self::$domainsTypo === null) {
191
      self::$domainsTypo = self::getData('domainsTypo');
192
    }
193
194
    if (\in_array($domain, self::$domainsTypo, true)) {
195
      return true;
196
    }
197
198
    return false;
199
  }
200
201
  /**
202
   * Check if the domain is a temporary domain.
@@ 208-219 (lines=12) @@
205
   *
206
   * @return bool
207
   */
208
  public static function isTemporaryDomain(string $domain): bool
209
  {
210
    if (self::$domainsTemporary === null) {
211
      self::$domainsTemporary = self::getData('domainsTemporary');
212
    }
213
214
    if (\in_array($domain, self::$domainsTemporary, true)) {
215
      return true;
216
    }
217
218
    return false;
219
  }
220
221
  /**
222
   * get data from "/data/*.php"