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

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