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

src/ORM/Annotations/PKAnnotationHandler.php 1 location

@@ 11-24 (lines=14) @@
8
use PhpBoot\ORM\ModelContainer;
9
use PhpBoot\Utils\AnnotationParams;
10
11
class PKAnnotationHandler
12
{
13
    /**
14
     * @param ModelContainer $container
15
     * @param AnnotationBlock|AnnotationTag $ann
16
     */
17
    public function __invoke(ModelContainer $container, $ann)
18
    {
19
        $params = new AnnotationParams($ann->description, 2);
20
        $table = $params->getParam(0) or \PhpBoot\abort(new AnnotationSyntaxException("The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()} require at least one param, 0 given"));
21
22
        $container->setPk($table);
23
    }
24
}

src/ORM/Annotations/TableAnnotationHandler.php 1 location

@@ 10-23 (lines=14) @@
7
use PhpBoot\ORM\ModelContainer;
8
use PhpBoot\Utils\AnnotationParams;
9
10
class TableAnnotationHandler
11
{
12
    /**
13
     * @param ModelContainer $container
14
     * @param AnnotationBlock|AnnotationTag $ann
15
     */
16
    public function __invoke(ModelContainer $container, $ann)
17
    {
18
        $params = new AnnotationParams($ann->description, 2);
19
        $table = $params->getParam(0) or \PhpBoot\abort(new AnnotationSyntaxException("The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()} require at least one param, 0 given"));
20
21
        $container->setTable($table);
22
    }
23
}