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

src/php/DataSift/Storyplayer/Console/DefaultConsole.php 1 location

@@ 118-148 (lines=31) @@
115
        $this->write(': ', $this->writer->punctuationStyle);
116
    }
117
118
    public function endPhaseGroup($result)
119
    {
120
        // tell the user what happened
121
        $this->write(' ');
122
        if ($result->getPhaseGroupSkipped()) {
123
            $this->writePhaseGroupSkipped($result->getResultString());
124
        }
125
        else if ($result->getPhaseGroupSucceeded()) {
126
            $this->writePhaseGroupSucceeded($result->getResultString());
127
        }
128
        else {
129
            $this->writePhaseGroupFailed($result->getResultString());
130
        }
131
132
        // write out the duration too
133
        $this->write(' (', $this->writer->punctuationStyle);
134
        $this->writeDuration($result->getDuration());
135
        $this->write(')' . PHP_EOL, $this->writer->punctuationStyle);
136
137
        // remember the result for the final report
138
        //
139
        // we have to clone as the result object apparently changes
140
        // afterwards. no idea why (yet)
141
        $this->results[] = clone $result;
142
143
        // if we are not connected to a terminal, we need to write out
144
        // a detailed error report
145
        if (!function_exists("posix_isatty") || !posix_isatty(STDOUT)) {
146
            $this->writeDetailedErrorReport($result);
147
        }
148
    }
149
150
    /**
151
     * called when a story starts a new phase

src/php/DataSift/Storyplayer/Console/UbLangConsole.php 1 location

@@ 130-160 (lines=31) @@
127
        $this->phaseGroupHasOutput = false;
128
    }
129
130
    public function endPhaseGroup($result)
131
    {
132
        // tell the user what happened
133
        $this->write('  Result: ');
134
        if ($result->getPhaseGroupSkipped()) {
135
            $this->writePhaseGroupSkipped($result->getResultString());
136
        }
137
        else if ($result->getPhaseGroupSucceeded()) {
138
            $this->writePhaseGroupSucceeded($result->getResultString());
139
        }
140
        else {
141
            $this->writePhaseGroupFailed($result->getResultString());
142
        }
143
144
        // write out the duration too
145
        $this->write(' (', $this->writer->punctuationStyle);
146
        $this->writeDuration($result->getDuration());
147
        $this->write(')' . PHP_EOL, $this->writer->punctuationStyle);
148
149
        // remember the result for the final report
150
        //
151
        // we have to clone as the result object apparently changes
152
        // afterwards. no idea why (yet)
153
        $this->results[] = clone $result;
154
155
        // if we are not connected to a terminal, we need to write out
156
        // a detailed error report
157
        if (!function_exists("posix_isatty") || !posix_isatty(STDOUT)) {
158
            $this->writeDetailedErrorReport($result);
159
        }
160
    }
161
162
    /**
163
     * called when a story starts a new phase