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

src/Trefoil/Plugins/Optional/TwigExtensionPlugin.php 2 locations

@@ 160-167 (lines=8) @@
157
        $dir = $this->app['publishing.dir.contents'];
158
        $file = $dir . '/' . $filename;
159
160
        if (!file_exists($file)) {
161
            $this->writeLn(
162
                sprintf('Included content file "%s" not found in "%s"', $filename, $this->item['config']['content']),
163
                'error'
164
            );
165
166
            return $filename;
167
        }
168
169
        $rendered = $this->renderString(file_get_contents($file), $variables);
170
@@ 195-202 (lines=8) @@
192
        $dir = $this->app['publishing.dir.contents'];
193
        $file = $dir . '/' . $filename;
194
195
        if (!file_exists($file)) {
196
            $this->writeLn(
197
                sprintf('Fragment file "%s" not found in "%s"', $filename, $this->item['config']['content']),
198
                'error'
199
            );
200
201
            return $filename;
202
        }
203
204
        $rendered = $this->renderString(file_get_contents($file), $variables);
205