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.

CommentControllerFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 3
1
<?php
2
namespace RbComment\Factory\Controller;
3
4
use Interop\Container\ContainerInterface;
5
use RbComment\Controller\CommentController;
6
use RbComment\Model\CommentTable;
7
use Zend\ServiceManager\Factory\FactoryInterface;
8
9
final class CommentControllerFactory implements FactoryInterface
10
{
11
    /**
12
     * @param ContainerInterface $container
13
     * @param string             $requestedName
14
     * @param array|null         $options
15
     *
16
     * @return CommentController
17
     */
18
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
19
    {
20
        $controller = new CommentController(
21
            $container->get('Config'),
22
            $container->get(CommentTable::class),
23
            $container->get('RbComment\Akismet')
24
        );
25
26
        return $controller;
27
    }
28
}
29