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

test/Behat/bootstrap/WorkflowDescriptorContext.php 2 locations

@@ 311-329 (lines=19) @@
308
     * @param string $nameMethod
309
     * @param string $expectedException
310
     */
311
    public function callAMethodDescriptorIExpectToGetAnException($nameMethod, $expectedException)
312
    {
313
        $actualException = null;
314
        try {
315
            $descriptor = $this->getLastCreatedDescriptor();
316
            $r = new \ReflectionObject($descriptor);
317
318
            if (!$r->hasMethod($nameMethod)) {
319
                $errMsg = "Method {$nameMethod}  does not exist";
320
                throw new \InvalidArgumentException($errMsg);
321
            }
322
323
            $r->getMethod($nameMethod)->invoke($descriptor);
324
        } catch (\Exception $e) {
325
            $actualException = $e;
326
        }
327
328
        PHPUnit_Framework_Assert::assertInstanceOf($expectedException, $actualException);
329
    }
330
331
    /**
332
     * @Then Call a method descriptor :nameMethod. I expect to get an exception message :expectedExceptionMessage
@@ 337-355 (lines=19) @@
334
     * @param $nameMethod
335
     * @param $expectedExceptionMessage
336
     */
337
    public function callAMethodDescriptorIExpectToGetAnExceptionMessage($nameMethod, $expectedExceptionMessage)
338
    {
339
        $actualExceptionMessage = null;
340
        try {
341
            $descriptor = $this->getLastCreatedDescriptor();
342
            $r = new \ReflectionObject($descriptor);
343
344
            if (!$r->hasMethod($nameMethod)) {
345
                $errMsg = "Method {$nameMethod}  does not exist";
346
                throw new \InvalidArgumentException($errMsg);
347
            }
348
349
            $r->getMethod($nameMethod)->invoke($descriptor);
350
        } catch (\Exception $e) {
351
            $actualExceptionMessage = $e->getMessage();
352
        }
353
354
        PHPUnit_Framework_Assert::assertEquals($expectedExceptionMessage, $actualExceptionMessage);
355
    }
356
357
358