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.

RateFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 17 1
1
<?php
2
3
namespace Octante\UpsAPIBundle\Services;
4
5
/*
6
 * This file is part of the UpsAPIBundle package.
7
 *
8
 * (c) Issel Guberna <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
use Octante\UpsAPIBundle\Library\RateWrapper;
15
16
class RateFactory
17
{
18
19
    /**
20
     * Return a new instance of Shipping wrapper class.
21
     *
22
     * @return RateWrapper
23
     */
24
    public static function create(
25
        $accessKey,
26
        $userId,
27
        $password,
28
        $logger,
29
        $useIntegration = false
30
    ){
31
        return new RateWrapper(
32
            new \Ups\Rate(
33
                $accessKey,
34
                $userId,
35
                $password,
36
                $useIntegration,
37
                $logger
38
            )
39
        );
40
    }
41
}
42