Code Duplication    Length = 12-12 lines in 3 locations

src/voku/helper/EmailCheck.php 3 locations

@@ 224-235 (lines=12) @@
221
   *
222
   * @return bool
223
   */
224
  public static function isExampleDomain($domain)
225
  {
226
    if (self::$domainsExample === null) {
227
      self::$domainsExample = self::getData('domainsExample');
228
    }
229
230
    if (in_array($domain, self::$domainsExample, true)) {
231
      return true;
232
    }
233
234
    return false;
235
  }
236
237
  /**
238
   * Check if the domain has a typo.
@@ 244-255 (lines=12) @@
241
   *
242
   * @return bool
243
   */
244
  public static function isTypoInDomain($domain)
245
  {
246
    if (self::$domainsTypo === null) {
247
      self::$domainsTypo = self::getData('domainsTypo');
248
    }
249
250
    if (in_array($domain, self::$domainsTypo, true)) {
251
      return true;
252
    }
253
254
    return false;
255
  }
256
257
  /**
258
   * Check if the domain is a temporary domain.
@@ 264-275 (lines=12) @@
261
   *
262
   * @return bool
263
   */
264
  public static function isTemporaryDomain($domain)
265
  {
266
    if (self::$domainsTemporary === null) {
267
      self::$domainsTemporary = self::getData('domainsTemporary');
268
    }
269
270
    if (in_array($domain, self::$domainsTemporary, true)) {
271
      return true;
272
    }
273
274
    return false;
275
  }
276
277
  /**
278
   * get data from "/data/*.php"