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

src/php/DataSift/Storyplayer/Cli/Feature/LogInternalEventsSupport.php 1 location

@@ 69-91 (lines=23) @@
66
 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
67
 * @link      http://datasift.github.io/storyplayer
68
 */
69
class Feature_LogInternalEventsSupport implements Feature
70
{
71
    public function addSwitches(CliCommand $command, $additionalContext)
72
    {
73
        $command->addSwitches([
74
            new Feature_LogInternalEventsSwitch()
75
        ]);
76
    }
77
78
    public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables)
79
    {
80
    }
81
82
    public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables)
83
    {
84
        // shorthand
85
        $st = StoryTeller::instance();
86
87
        if (isset($engine->options->logInternalEvents) && ($engine->options->logInternalEvents)) {
88
            Events::usingEventStream($st->getEventStream())->registerEventHandler(EventFiredEvent::class, new Feature_LogInternalEventsHandler());
89
        }
90
    }
91
}
92

src/php/DataSift/Storyplayer/Cli/Feature/WarnDeprecatedSupport.php 1 location

@@ 70-93 (lines=24) @@
67
 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
68
 * @link      http://datasift.github.io/storyplayer
69
 */
70
class Feature_WarnDeprecatedSupport implements Feature
71
{
72
    public function addSwitches(CliCommand $command, $additionalContext)
73
    {
74
        $command->addSwitches([
75
            new Feature_WarnDeprecatedSwitch
76
        ]);
77
    }
78
79
    public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables)
80
    {
81
        // no-op
82
    }
83
84
    public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables)
85
    {
86
        // shorthand
87
        $st = StoryTeller::instance();
88
89
        if (isset($engine->options->warnDeprecated) && ($engine->options->warnDeprecated)) {
90
            Events::usingEventStream($st->getEventStream())->registerEventHandler(DeprecatedEvent::class, new Feature_WarnDeprecatedHandler);
91
        }
92
    }
93
}
94