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

createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 5
nc 1
nop 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