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.

OutputTask   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureVariables() 0 15 1
A run() 0 4 1
1
<?php
2
/**
3
 * See class comment
4
 *
5
 * PHP Version 5
6
 *
7
 * @category   Netresearch
8
 * @package    Netresearch\Kite
9
 * @subpackage Task
10
 * @author     Christian Opitz <[email protected]>
11
 * @license    http://www.netresearch.de Netresearch Copyright
12
 * @link       http://www.netresearch.de
13
 */
14
15
namespace Netresearch\Kite\Task;
16
use Symfony\Component\Console\Output\OutputInterface;
17
18
/**
19
 * Output the message
20
 *
21
 * @category   Netresearch
22
 * @package    Netresearch\Kite
23
 * @subpackage Task
24
 * @author     Christian Opitz <[email protected]>
25
 * @license    http://www.netresearch.de Netresearch Copyright
26
 * @link       http://www.netresearch.de
27
 */
28
class OutputTask extends \Netresearch\Kite\Task
29
{
30
    /**
31
     * Configure the variables
32
     *
33
     * @return array
34
     */
35
    protected function configureVariables()
36
    {
37
        return array(
38
            'severity' => array(
39
                'type' => 'int',
40
                'label' => 'Severity of message (use OutputInterface::VERBOSITY_* constants)',
41
                'default' => OutputInterface::VERBOSITY_NORMAL
42
            ),
43
            'newLine' => array(
44
                'type' => 'bool',
45
                'default' => true,
46
                'label' => 'Whether to print a new line after message'
47
            ),
48
        );
49
    }
50
51
    /**
52
     * Don't do anything
53
     *
54
     * @return void
55
     */
56
    public function run()
57
    {
58
        $this->console->output($this->get('message'), $this->get('severity'), $this->get('newLine'));
59
    }
60
}
61
?>
62