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.

MercadoPagoGatewayFactory::populateConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 12
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusMercadoPagoPlugin\Payum;
6
7
use Odiseo\SyliusMercadoPagoPlugin\Payum\Action\StatusAction;
8
use Payum\Core\Bridge\Spl\ArrayObject;
9
use Payum\Core\GatewayFactory;
10
11
final class MercadoPagoGatewayFactory extends GatewayFactory
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    protected function populateConfig(ArrayObject $config): void
17
    {
18
        $config->defaults([
19
            'payum.factory_name' => 'mercado_pago',
20
            'payum.factory_title' => 'Mercado Pago',
21
            'payum.action.status' => new StatusAction(),
22
        ]);
23
24
        $config['payum.api'] = function (ArrayObject $config): MercadoPagoApi {
25
            return new MercadoPagoApi(
26
                $config['access_token'],
27
                $config['sandbox']
28
            );
29
        };
30
    }
31
}
32