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 = 4-5 lines in 5 locations

src/php/Storyplayer/SPv2/Modules/Host/FromHost.php 3 locations

@@ 396-400 (lines=5) @@
393
        $hostDetails = $this->getHostDetails();
394
395
        // do we have any app settings?
396
        if (!isset($hostDetails->appSettings)) {
397
            $msg = "host has no appSettings at all";
398
            $log->endAction($msg);
399
            throw Exceptions::newActionFailedException(__METHOD__, $msg);
400
        }
401
402
        // do we have the setting that we want?
403
        if (!$hostDetails->appSettings->hasData($path)) {
@@ 438-441 (lines=4) @@
435
            $log->endAction("host has no appSettings for {$appName}");
436
            throw Exceptions::newActionFailedException(__METHOD__);
437
        }
438
        if (!isset($hostDetails->appSettings->$appName->$settingName)) {
439
            $log->endAction("host has no appSetting '{$settingName}' for {$appName}");
440
            throw Exceptions::newActionFailedException(__METHOD__);
441
        }
442
443
        // yes we do
444
        $value = $hostDetails->appSettings->$appName->$settingName;
@@ 468-472 (lines=5) @@
465
        $hostDetails = $this->getHostDetails();
466
467
        // do we have any app settings?
468
        if (!isset($hostDetails->storySettings)) {
469
            $msg = "host has no storySettings at all";
470
            $log->endAction($msg);
471
            throw Exceptions::newActionFailedException(__METHOD__, $msg);
472
        }
473
474
        // do we have the setting that we want?
475
        if (!$hostDetails->storySettings->hasData($path)) {

src/php/Storyplayer/SPv2/Modules/ZeroMQ/UsingZmqContext.php 2 locations

@@ 110-114 (lines=5) @@
107
        $log = Log::usingLog()->startAction("bind() to ZMQ tcp '{$socketType}' socket at host 'localhost':{$port}");
108
109
        // do we have a supported socket?
110
        if (!isset($this->socketMap[$socketType])) {
111
            $msg = "unknown ZMQ socket type '{$socketType}'";
112
            $log->endAction($msg);
113
            throw Exceptions::newActionFailedException(__METHOD__, $msg);
114
        }
115
116
        // make the connection
117
        $socket = new ZMQSocket($this->args[0], $this->socketMap[$socketType]);
@@ 140-144 (lines=5) @@
137
        $log = Log::usingLog()->startAction("connect() to ZMQ '{$socketType}' socket on host '{$hostId}':{$port}");
138
139
        // do we have a supported socket?
140
        if (!isset($this->socketMap[$socketType])) {
141
            $msg = "unknown ZMQ socket type '{$socketType}'";
142
            $log->endAction($msg);
143
            throw Exceptions::newActionFailedException(__METHOD__, $msg);
144
        }
145
146
        // where are we connecting to?
147
        $ipAddress = Host::fromHost($hostId)->getIpAddress();