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.

FirephpWrapperOptionsFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 25
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createService() 0 16 2
1
<?php
2
/*
3
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
5
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
6
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
7
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
 */
10
11
namespace MpaFirephpWrapper\Options;
12
13
use Zend\ServiceManager\FactoryInterface;
14
use Zend\ServiceManager\ServiceLocatorInterface;
15
16
class FirephpWrapperOptionsFactory implements FactoryInterface
17
{
18
    /**
19
     * Create service
20
     *
21
     * @param  ServiceLocatorInterface $serviceLocator
22
     * @return FirephpWrapperOptions
23
     */
24 11
    public function createService(ServiceLocatorInterface $serviceLocator)
25
    {
26 11
        $config = $serviceLocator->get('config');
27
28 11
        if (isset($config['mpafirephpwrapper'])) {
29 10
            return new FirephpWrapperOptions($config['mpafirephpwrapper']);
30
        }
31
32 1
        return new FirephpWrapperOptions([
33 1
            'maxObjectDepth'      => 3,
34
            'maxArrayDepth'       => 3,
35
            'maxDepth'            => 3,
36
            'useNativeJsonEncode' => true,
37
            'includeLineNumbers'  => true
38
        ]);
39
    }
40
}
41