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.

MailerFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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