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.

ConsoleControllerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
namespace RbComment\Factory\Controller;
3
4
use Interop\Container\ContainerInterface;
5
use RbComment\Controller\ConsoleController;
6
use RbComment\Model\CommentTable;
7
use Zend\ServiceManager\Factory\FactoryInterface;
8
9
final class ConsoleControllerFactory implements FactoryInterface
10
{
11
    /**
12
     * @param ContainerInterface $container
13
     * @param string             $requestedName
14
     * @param array|null         $options
15
     *
16
     * @return ConsoleController
17
     */
18
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
19
    {
20
        $controller = new ConsoleController(
21
            $container->get(CommentTable::class)
22
        );
23
24
        return $controller;
25
    }
26
}
27