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.
Completed
Push — master ( dacac4...e176a0 )
by Jelte
02:19
created

AliasShaInParameterFilter::filter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
/*
4
 * This file is part of the Marlon Ogone package.
5
 *
6
 * (c) Marlon BVBA <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ogone\ParameterFilter;
13
14
class AliasShaInParameterFilter implements ParameterFilter
15
{
16
    private $allowed = array(
17
        'ACCEPTURL', 'ALIAS', 'ALIASPERSISTEDAFTERUSE', 'BRAND', 'EXCEPTIONURL',
18
        'LANGUAGE', 'ORDERID', 'PARAMPLUS', 'PSPID'
19
    );
20
21
    public function filter(array $parameters)
22
    {
23
        $parameters = array_change_key_case($parameters, CASE_UPPER);
24
        return array_intersect_key($parameters, array_flip($this->allowed));
25
    }
26
}
27