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

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