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.

TypeYourArguments   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 61
rs 10
wmc 7
lcom 0
cbo 2

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getDescription() 0 4 1
A getArgs() 0 4 1
A getType() 0 4 1
A getRequiredFunctions() 0 4 1
A getBannedFunctions() 0 4 1
A configure() 0 4 1
1
<?php
2
3
namespace PhpSchool\Php7Way\Exercise;
4
5
use PhpSchool\PhpWorkshop\Check\FunctionRequirementsCheck;
6
use PhpSchool\PhpWorkshop\Exercise\AbstractExercise;
7
use PhpSchool\PhpWorkshop\Exercise\CliExercise;
8
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
9
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
10
use PhpSchool\PhpWorkshop\ExerciseCheck\FunctionRequirementsExerciseCheck;
11
use PhpSchool\PhpWorkshop\ExerciseDispatcher;
12
13
/**
14
 * Class TYpeYourArgulents
15
 * @package PhpSchool\Php7Way\Exercise
16
 */
17
class TypeYourArguments extends AbstractExercise implements
18
    ExerciseInterface,
19
    CliExercise,
20
    FunctionRequirementsExerciseCheck
21
{
22
    /**
23
     * @return string
24
     */
25
    public function getName()
26
    {
27
        return 'Type your arguments!';
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getDescription()
34
    {
35
        return 'Use scalar types with arguments';
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getArgs()
42
    {
43
        return [];
44
    }
45
46
    /**
47
     * @return ExerciseType
48
     */
49
    public function getType()
50
    {
51
        return ExerciseType::CLI();
52
    }
53
54
    /**
55
     * @return string[]
56
     */
57
    public function getRequiredFunctions()
58
    {
59
        return ["noStrictFunction", "strictFunction"];
60
    }
61
62
    /**
63
     * @return string[]
64
     */
65
    public function getBannedFunctions()
66
    {
67
        return [];
68
    }
69
70
    /**
71
     * @param ExerciseDispatcher $dispatcher
72
     */
73
    public function configure(ExerciseDispatcher $dispatcher)
74
    {
75
        $dispatcher->requireCheck(FunctionRequirementsCheck::class);
76
    }
77
}
78