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 — dev ( b4e0b1...5fffd6 )
by Андрей
03:39
created

EntryToObjectsControllerPluginFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 11 1
1
<?php
2
/**
3
 * @link    https://github.com/old-town/workflow-zf2-toolkit
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Toolkit\EntryToObjects;
7
8
use Zend\ServiceManager\FactoryInterface;
9
use Zend\ServiceManager\ServiceLocatorInterface;
10
11
/**
12
 * Class EntryToObjectsControllerPluginFactory
13
 *
14
 * @package OldTown\Workflow\ZF2\Toolkit\EntryToObjects
15
 */
16
class EntryToObjectsControllerPluginFactory implements FactoryInterface
17
{
18
    /**
19
     * @param ServiceLocatorInterface $serviceLocator
20
     *
21
     * @return mixed|void
22
     * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException
23
     */
24
    public function createService(ServiceLocatorInterface $serviceLocator)
25
    {
26
        /** @var EntryToObjectsService $entryToObjectsService */
27
        $entryToObjectsService = $serviceLocator->get(EntryToObjectsService::class);
28
29
        $options = [
30
            'entryToObjectsService' => $entryToObjectsService
31
        ];
32
33
        return new EntryToObjectsControllerPlugin($options);
34
    }
35
}
36