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 ( b71509...a4a6e2 )
by Cees-Jan
07:54
created

EmptyDirectory   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 90
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 11
lcom 0
cbo 0
dl 90
loc 90
rs 10
c 0
b 0
f 0

11 Methods

Rating   Name   Duplication   Size   Complexity  
A type() 4 4 1
A encoding() 4 4 1
A size() 4 4 1
A name() 4 4 1
A path() 4 4 1
A sha() 4 4 1
A url() 4 4 1
A gitUrl() 4 4 1
A htmlUrl() 4 4 1
A downloadUrl() 4 4 1
A links() 4 4 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Contents;
4
5
use ApiClients\Foundation\Resource\EmptyResourceInterface;
6
7 View Code Duplication
abstract class EmptyDirectory implements DirectoryInterface, EmptyResourceInterface
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...
8
{
9
    /**
10
     * @return string
11
     */
12
    public function type() : string
13
    {
14
        return null;
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function encoding() : string
21
    {
22
        return null;
23
    }
24
25
    /**
26
     * @return int
27
     */
28
    public function size() : int
29
    {
30
        return null;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function name() : string
37
    {
38
        return null;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function path() : string
45
    {
46
        return null;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function sha() : string
53
    {
54
        return null;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function url() : string
61
    {
62
        return null;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function gitUrl() : string
69
    {
70
        return null;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function htmlUrl() : string
77
    {
78
        return null;
79
    }
80
81
    /**
82
     * @return string
83
     */
84
    public function downloadUrl() : string
85
    {
86
        return null;
87
    }
88
89
    /**
90
     * @return Contents\Links
91
     */
92
    public function links() : Contents\Links
93
    {
94
        return null;
95
    }
96
}
97