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

tests/WorkflowEmbargoExpiryTest.php 2 locations

@@ 334-350 (lines=17) @@
331
    /**
332
     * Tests that checking for publishing scheduled state is working
333
     */
334
    public function testIsPublishScheduled()
335
    {
336
        $page = SiteTree::create();
337
        $page->Title = 'My page';
338
        $page->PublishOnDate = '2010-01-01 00:00:00';
339
        $page->AllowEmbargoedEditing = false;
340
        $page->write();
341
342
        $this->assertFalse($page->getIsPublishScheduled());
343
344
        $page->PublishOnDate = '2016-02-01 00:00:00';
345
        DBDatetime::set_mock_now('2016-01-16 00:00:00');
346
        $this->assertTrue($page->getIsPublishScheduled());
347
348
        DBDatetime::set_mock_now('2016-02-16 00:00:00');
349
        $this->assertFalse($page->getIsPublishScheduled());
350
    }
351
352
    /**
353
     * Tests that checking for un-publishing scheduled state is working
@@ 355-371 (lines=17) @@
352
    /**
353
     * Tests that checking for un-publishing scheduled state is working
354
     */
355
    public function testIsUnPublishScheduled()
356
    {
357
        $page = SiteTree::create();
358
        $page->Title = 'My page';
359
        $page->PublishOnDate = '2010-01-01 00:00:00';
360
        $page->AllowEmbargoedEditing = false;
361
        $page->write();
362
363
        $this->assertFalse($page->getIsUnPublishScheduled());
364
365
        $page->UnPublishOnDate = '2016-02-01 00:00:00';
366
        DBDatetime::set_mock_now('2016-01-16 00:00:00');
367
        $this->assertTrue($page->getIsUnPublishScheduled());
368
369
        DBDatetime::set_mock_now('2016-02-16 00:00:00');
370
        $this->assertFalse($page->getIsUnPublishScheduled());
371
    }
372
373
    /**
374
     * Tests that status flags (badges) are added properly for a page