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.
Completed
Push — master ( 0268aa...3ec9bd )
by cao
05:24
created

CommandNameAnnotationHandler::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PhpBoot\Console\Annotations;
4
5
use PhpBoot\Annotation\AnnotationBlock;
6
use PhpBoot\Annotation\AnnotationTag;
7
use PhpBoot\Console\ConsoleContainer;
8
use PhpBoot\Utils\AnnotationParams;
9
10
class CommandNameAnnotationHandler
11
{
12
    /**
13
     * @param ConsoleContainer $container
14
     * @param AnnotationBlock|AnnotationTag $ann
15
     */
16 1
    public function __invoke(ConsoleContainer $container, $ann)
17
    {
18 1
        $params = new AnnotationParams($ann->description, 2);
19 1
        $container->setModuleName($params->getParam(0, ''));
20
    }
21
}