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

src/php/DataSift/Storyplayer/Cli/BuildTestEnvironment/Command.php 1 location

@@ 295-323 (lines=29) @@
292
     * @param  integer $signo
293
     * @return void
294
     */
295
    public function sigtermHandler($signo)
296
    {
297
        // tell the user what is happening
298
        echo PHP_EOL;
299
        echo "============================================================" . PHP_EOL;
300
        echo "USER ABORT!!" . PHP_EOL;
301
302
        // do we skip destroying the test environment?
303
        if ($this->st->getPersistTestEnvironment()) {
304
            echo PHP_EOL . "* Warning: NOT destroying test environment" . PHP_EOL
305
                 .         "           --reuse-target flag is set" . PHP_EOL;
306
        }
307
308
        // cleanup
309
        echo PHP_EOL . "Cleaning up: ";
310
        $phasesPlayer = new PhaseGroup_Player();
311
        $phasesPlayer->playPhases(
312
            "user abort",
313
            $this->st,
314
            $this->injectables,
315
            $this->injectables->activeConfig->getData('storyplayer.phases.userAbort'),
316
            null
317
        );
318
319
        echo " done" . PHP_EOL . "============================================================" . PHP_EOL . PHP_EOL;
320
321
        // force a clean shutdown
322
        exit(1);
323
    }
324
}
325

src/php/DataSift/Storyplayer/Cli/PlayStory/Command.php 1 location

@@ 489-517 (lines=29) @@
486
     * @param  integer $signo
487
     * @return void
488
     */
489
    public function sigtermHandler($signo)
490
    {
491
        // tell the user what is happening
492
        echo PHP_EOL;
493
        echo "============================================================" . PHP_EOL;
494
        echo "USER ABORT!!" . PHP_EOL;
495
496
        // do we skip destroying the test environment?
497
        if ($this->st->getPersistTestEnvironment()) {
498
            echo PHP_EOL . "* Warning: NOT destroying test environment" . PHP_EOL
499
                 .         "           --reuse-target flag is set" . PHP_EOL;
500
        }
501
502
        // cleanup
503
        echo PHP_EOL . "Cleaning up: ";
504
        $phasesPlayer = new PhaseGroup_Player();
505
        $phasesPlayer->playPhases(
506
            "user abort",
507
            $this->st,
508
            $this->injectables,
509
            $this->injectables->activeConfig->getData('storyplayer.phases.userAbort'),
510
            null
511
        );
512
513
        echo " done" . PHP_EOL . "============================================================" . PHP_EOL . PHP_EOL;
514
515
        // force a clean shutdown
516
        exit(1);
517
    }
518
519
    // ==================================================================
520
    //