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

src/php/Storyplayer/SPv2/Modules/Host/ExpectsHost.php 2 locations

@@ 101-118 (lines=18) @@
98
        $log->endAction();
99
    }
100
101
    public function packageIsInstalled($packageName)
102
    {
103
        // what are we doing?
104
        $log = usingLog()->startAction("make sure package '{$packageName}' is installed on host '{$this->args[0]}'");
105
106
        // make sure we have valid host details
107
        $hostDetails = $this->getHostDetails();
108
109
        // is it installed?
110
        $details = fromHost($hostDetails->hostId)->getInstalledPackageDetails($packageName);
111
        if (!isset($details->version)) {
112
            $log->endAction();
113
            throw Exceptions::newExpectFailedException(__METHOD__, "package installed", "package is not installed");
114
        }
115
116
        // all done
117
        $log->endAction();
118
    }
119
120
    public function packageIsNotInstalled($packageName)
121
    {
@@ 120-138 (lines=19) @@
117
        $log->endAction();
118
    }
119
120
    public function packageIsNotInstalled($packageName)
121
    {
122
        // what are we doing?
123
        $log = usingLog()->startAction("make sure package '{$packageName}' is not installed on host '{$this->args[0]}'");
124
125
        // make sure we have valid host details
126
        $hostDetails = $this->getHostDetails();
127
128
        // is it installed?
129
        $details = fromHost($hostDetails->hostId)->getInstalledPackageDetails($packageName);
130
131
        if (isset($details->version)) {
132
            $log->endAction();
133
            throw Exceptions::newExpectFailedException(__METHOD__, "package not installed", "package is installed");
134
        }
135
136
        // all done
137
        $log->endAction();
138
    }
139
140
    public function processIsRunning($processName)
141
    {