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 = 10-10 lines in 2 locations

code/extensions/WorkflowEmbargoExpiryExtension.php 2 locations

@@ 534-543 (lines=10) @@
531
     *
532
     * @return bool
533
     */
534
    public function getIsPublishScheduled()
535
    {
536
        if (!$this->owner->PublishOnDate) {
537
            return false;
538
        }
539
        $now = DBDatetime::now()->getTimestamp();
540
        $publish = $this->owner->dbObject('PublishOnDate')->getTimestamp();
541
542
        return $now < $publish;
543
    }
544
545
    /**
546
     * Returns whether an unpublishing date has been set and is after the current date
@@ 550-559 (lines=10) @@
547
     *
548
     * @return bool
549
     */
550
    public function getIsUnPublishScheduled()
551
    {
552
        if (!$this->owner->UnPublishOnDate) {
553
            return false;
554
        }
555
        $now = DBDatetime::now()->getTimestamp();
556
        $unpublish = $this->owner->dbObject('UnPublishOnDate')->getTimestamp();
557
558
        return $now < $unpublish;
559
    }
560
561
    /**
562
     * Add edit check for when publishing has been scheduled and if any workflow definitions want the item to be