GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 13-13 lines in 2 locations

src/Event/AbstractEvent.php 2 locations

@@ 385-397 (lines=13) @@
382
   * @param \DateTime $date
383
   * @return bool
384
   */
385
  public function dateIsEarlier(\DateTime $date) {
386
    $dateEarlier = FALSE;
387
388
    $t1 = $this->start_date->getTimeStamp();
389
390
    $t3 = $date->getTimeStamp();
391
392
    if ($t3 < $t1) {
393
      $dateEarlier = TRUE;
394
    }
395
396
    return $dateEarlier;
397
  }
398
399
  /**
400
   * Checks if the date supplied ends after our event ends
@@ 442-454 (lines=13) @@
439
   * @param \DateTime $date
440
   * @return bool
441
   */
442
  public function startsEarlier(\DateTime $date) {
443
    $earlier = FALSE;
444
445
    $t1 = $this->start_date->getTimeStamp();
446
447
    $t3 = $date->getTimestamp();
448
449
    if ($t1 < $t3) {
450
      $earlier = TRUE;
451
    }
452
453
    return $earlier;
454
  }
455
456
  /**
457
   * Transforms the event in a breakdown of days, hours and minutes with associated states.