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.

BaseSyncCommand   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
eloc 6
c 1
b 1
f 1
dl 0
loc 15
rs 10
wmc 4

1 Method

Rating   Name   Duplication   Size   Complexity  
A showError() 0 7 4
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusMailchimpPlugin\Command;
6
7
use Symfony\Component\Console\Command\Command;
8
use Symfony\Component\Console\Style\SymfonyStyle;
9
10
abstract class BaseSyncCommand extends Command
11
{
12
    /** @var SymfonyStyle */
13
    protected $io;
14
15
    /**
16
     * @param array $response
17
     */
18
    protected function showError(array $response): void
19
    {
20
        $this->io->error('Status: ' . $response['status'] . ', Detail: ' . $response['detail']);
21
22
        if (isset($response['errors']) && count($response['errors']) > 0) {
23
            foreach ($response['errors'] as $error) {
24
                $this->io->listing($error);
25
            }
26
        }
27
    }
28
}
29