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.

ImageProcessingFactory::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * Smart image resizing (and manipulation) by url module for Zend Framework 3
4
 *
5
 * @link      http://github.com/tck/zf2-imageresizer for the canonical source repository
6
 * @copyright Copyright (c) 2017 Tobias Knab
7
 * 
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
/**
13
 * namespace definition and usage
14
 */
15
namespace TckImageResizer\Service;
16
17
use Interop\Container\ContainerInterface;
18
use Zend\ServiceManager\FactoryInterface;
19
use Zend\ServiceManager\ServiceLocatorInterface;
20
21
/**
22
 * Create image processing service
23
 * 
24
 * @package Application
25
 */
26
class ImageProcessingFactory implements FactoryInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Zend\ServiceManager\FactoryInterface has been deprecated with message: Use Zend\ServiceManager\Factory\FactoryInterface instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
27
{
28
    /**
29
     * Create an ImageProcessing object
30
     *
31
     * @param  ContainerInterface $container
32
     * @param  string             $requestedName
33 6
     * @param  null|array         $options
34
     * @return ImageProcessing
35
     */
36 6
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
37
    {
38 6
        return new ImageProcessing($container->get('TckImageResizerImagine'));
39 6
    }
40
41
    public function createService(ServiceLocatorInterface $services)
42
    {
43
        return $this($services, 'TckImageResizerImagine');
44
    }
45
}
46