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.

RunCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
4
5
namespace Katten\Purge\Commands;
6
7
8
use Sabberworm\CSS\Parser;
9
use Sabberworm\CSS\Settings;
10
use Katten\Purge\Controllers\AppController;
11
use Symfony\Component\Console\Command\Command;
12
use Symfony\Component\Console\Input\InputArgument;
13
use Symfony\Component\Console\Input\InputInterface;
14
use Symfony\Component\Console\Input\InputOption;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
18
19
class RunCommand extends Command {
20
    
21
    
22
    
23
    protected function configure() {
24
        
25
        $this
26
            ->setName('purge:run')
27
            ->setDescription('Purge unused css from specified css files')
28
            ->addArgument(
29
                'css',
30
                InputArgument::REQUIRED,
31
                'Specify a css file to purge'
32
            )
33
            ->addOption(
34
                'mb-support',
35
                null,
36
                InputOption::VALUE_NONE,
37
                'If set, multibyte functions will be enabled in the CSS parser '
38
                .'this typically causes slower parse times and is disabled by default'
39
            )
40
            ->addArgument(
41
                'html',
42
                InputArgument::REQUIRED,
43
                'Specify an html file to check against'
44
            )
45
            ->addArgument(
46
                'output-file',
47
                InputArgument::REQUIRED,
48
                'Specify a file to write the output to'
49
            )
50
            ->addOption(
51
                'sitemap',
52
                null,
53
                InputOption::VALUE_NONE,
54
                'If set, Purge will read in a sitemap file and run against the links found within it'
55
            );
56
    }
57
    
58
    
59
    
60
    protected function execute(InputInterface $input, OutputInterface $output) {
61
        
62
        $app = new AppController($input, $output);
63
        $app->run();
64
    }
65
    
66
    
67
    
68
    
69
}
70
71