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.

ConfirmTask::createQuestion()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 1
nop 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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\Question\ConfirmationQuestion;
17
18
/**
19
 * Ask a confirmation question and return the answer
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 ConfirmTask extends AnswerTask
29
{
30
    /**
31
     * Create a question
32
     *
33
     * @param string $question The question
34
     * @param mixed  $default  Default value
35
     *
36
     * @return ConfirmationQuestion
37
     */
38
    protected function createQuestion($question, $default)
39
    {
40
        $default = $default !== false;
41
        return new ConfirmationQuestion(
42
            $this->formatQuestion($question, $default ? 'y' : 'n'),
43
            $default
44
        );
45
    }
46
}
47
?>
48