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

src/php/DataSift/Storyplayer/HostLib/PhysicalHosts.php 1 location

@@ 102-110 (lines=9) @@
99
        if (empty($groupDef->details->machines)) {
100
            throw Exceptions::newActionFailedException(__METHOD__, "groupDef->details->machines cannot be empty");
101
        }
102
        foreach($groupDef->details->machines as $hostId => $machine) {
103
            // TODO: it would be great to autodetect this one day
104
            if (!isset($machine->roles)) {
105
                throw Exceptions::newActionFailedException(__METHOD__, "missing groupDef->details->machines['$hostId']->roles");
106
            }
107
            if (!isset($machine->ipAddress)) {
108
                throw Exceptions::newActionFailedException(__METHOD__, "missing groupDef->details->machines['$hostId']->ipAddress");
109
            }
110
        }
111
112
        // remove any existing hosts table entry
113
        foreach ($groupDef->details->machines as $hostId => $machine) {

src/php/DataSift/Storyplayer/HostLib/VagrantVms.php 1 location

@@ 143-151 (lines=9) @@
140
        $baseFolder = $this->getVagrantDir($groupDef);
141
142
        // make sure we're happy with details about the machine
143
        foreach($groupDef->details->machines as $hostId => $machine) {
144
            // TODO: it would be great to autodetect this one day
145
            if (!isset($machine->osName)) {
146
                throw Exceptions::newActionFailedException(__METHOD__, "missing groupDef->details->machines['$hostId']->osName");
147
            }
148
            if (!isset($machine->roles)) {
149
                throw Exceptions::newActionFailedException(__METHOD__, "missing groupDef->details->machines['$hostId']->roles");
150
            }
151
        }
152
153
        // make sure the VM is stopped, if it is running
154
        $log->addStep('stop vagrant VM in '.$baseFolder.' if already running', function() use($baseFolder) {