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

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