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.
Completed
Push — master ( 35de78...03d5ad )
by Nastasia
07:55 queued 05:47
created

NullItsNot::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 4
loc 4
rs 10
1
<?php
2
3
namespace PhpSchool\Php7Way\Exercise;
4
5
use PhpSchool\PhpWorkshop\Exercise\AbstractExercise;
6
use PhpSchool\PhpWorkshop\Exercise\CliExercise;
7
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
8
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
9
10
/**
11
 * Class NullITsNot
12
 * @package PhpSchool\Php7Way\Exercise
13
 */
14 View Code Duplication
class NullItsNot extends AbstractExercise implements
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
    ExerciseInterface,
16
    CliExercise
17
{
18
    /**
19
     * @return string
20
     */
21
    public function getName()
22
    {
23
        return 'Null, it\'s not!';
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getDescription()
30
    {
31
        return 'Use the null coalescing operator to check if the value exists';
32
    }
33
34
    /**
35
     * @return array
36
     */
37
    public function getArgs()
38
    {
39
        return ["FirstArgument"];
40
    }
41
42
    /**
43
     * @return ExerciseType
44
     */
45
    public function getType()
46
    {
47
        return ExerciseType::CLI();
48
    }
49
}
50