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

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