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

Slim/Http/Stream.php 2 locations

@@ 272-287 (lines=16) @@
269
     */
270
    public function isReadable()
271
    {
272
        if ($this->readable === null) {
273
            if ($this->isPipe()) {
274
                $this->readable = true;
275
            } else {
276
                $this->readable = false;
277
                if ($this->isAttached()) {
278
                    $meta = $this->getMetadata();
279
                    foreach (self::$modes['readable'] as $mode) {
280
                        if (strpos($meta['mode'], $mode) === 0) {
281
                            $this->readable = true;
282
                            break;
283
                        }
284
                    }
285
                }
286
            }
287
        }
288
289
        return $this->readable;
290
    }
@@ 299-310 (lines=12) @@
296
     */
297
    public function isWritable()
298
    {
299
        if ($this->writable === null) {
300
            $this->writable = false;
301
            if ($this->isAttached()) {
302
                $meta = $this->getMetadata();
303
                foreach (self::$modes['writable'] as $mode) {
304
                    if (strpos($meta['mode'], $mode) === 0) {
305
                        $this->writable = true;
306
                        break;
307
                    }
308
                }
309
            }
310
        }
311
312
        return $this->writable;
313
    }