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.

FormManagerFactory::createService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 12
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
/**
3
 * Description
4
 *
5
 * @category  Acsi
6
 * @package   Acsi\
7
 * @copyright 2012 Bram Gerritsen
8
 * @version   SVN: $Id$
9
 */
10
11
namespace StrokerForm\Factory;
12
13
use StrokerForm\FormManager;
14
use StrokerForm\Options\ModuleOptions;
15
use Zend\ServiceManager\FactoryInterface;
16
use Zend\ServiceManager\ServiceLocatorInterface;
17
18
class FormManagerFactory implements FactoryInterface
19
{
20
    /**
21
     * Create service
22
     *
23
     * @param  ServiceLocatorInterface $serviceLocator
24
     *
25
     * @return FormManager
26
     */
27
    public function createService(ServiceLocatorInterface $serviceLocator)
28
    {
29
        /** @var $moduleOptions ModuleOptions */
30
        $moduleOptions = $serviceLocator->get(ModuleOptions::class);
31
32
        // init FormManager
33
        $manager = new FormManager($moduleOptions->getForms());
34
        // add serviceLocator to FormManager
35
        $manager->setServiceLocator($serviceLocator);
36
37
        return $manager;
38
    }
39
}
40