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::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
rs 9.4285
cc 1
eloc 13
nc 1
nop 5
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