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

@@ 404-416 (lines=13) @@
401
   * @param \DateTime $date
402
   * @return bool
403
   */
404
  public function dateIsLater(\DateTime $date) {
405
    $dateLater = FALSE;
406
407
    $t2 = $this->end_date->getTimeStamp();
408
409
    $t4 = $date->getTimestamp();
410
411
    if ($t2 < $t4) {
412
      $dateLater = TRUE;
413
    }
414
415
    return $dateLater;
416
  }
417
418
  /**
419
   * Checks if our event ends after the date supplied
@@ 423-435 (lines=13) @@
420
   * @param \DateTime $date
421
   * @return bool
422
   */
423
  public function endsLater(\DateTime $date) {
424
    $later = FALSE;
425
426
    $t2 = $this->end_date->getTimeStamp();
427
428
    $t4 = $date->getTimestamp();
429
430
    if ($t2 > $t4) {
431
      $later = TRUE;
432
    }
433
434
    return $later;
435
  }
436
437
  /**
438
   * Checks if our event starts earlier than the date supplied