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 ( 4e2a22...679227 )
by Cees-Jan
05:21
created

File::encoding()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\Github\Resource\Contents;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotation\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
9
/**
10
 * @Nested(
11
 *     _links="Contents\Links"
12
 * )
13
 * @EmptyResource("Contents\EmptyFile")
14
 */
15 View Code Duplication
abstract class File extends AbstractResource implements FileInterface
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...
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $type;
21
22
    /**
23
     * @var string
24
     */
25
    protected $encoding;
26
27
    /**
28
     * @var int
29
     */
30
    protected $size;
31
32
    /**
33
     * @var string
34
     */
35
    protected $name;
36
37
    /**
38
     * @var string
39
     */
40
    protected $path;
41
42
    /**
43
     * @var string
44
     */
45
    protected $content;
46
47
    /**
48
     * @var string
49
     */
50
    protected $sha;
51
52
    /**
53
     * @var string
54
     */
55
    protected $url;
56
57
    /**
58
     * @var string
59
     */
60
    protected $git_url;
61
62
    /**
63
     * @var string
64
     */
65
    protected $html_url;
66
67
    /**
68
     * @var string
69
     */
70
    protected $download_url;
71
72
    /**
73
     * @var string
74
     */
75
    protected $repository_fullname;
76
77
    /**
78
     * @var Links
79
     */
80
    // @codingStandardsIgnoreStart
81
    protected $_links;
82
    // @codingStandardsIgnoreEnd
83
84
    /**
85
     * @return string
86
     */
87 4
    public function type() : string
88
    {
89 4
        return $this->type;
90
    }
91
92
    /**
93
     * @return string
94
     */
95 4
    public function encoding() : string
96
    {
97 4
        return $this->encoding;
98
    }
99
100
    /**
101
     * @return int
102
     */
103 4
    public function size() : int
104
    {
105 4
        return $this->size;
106
    }
107
108
    /**
109
     * @return string
110
     */
111 4
    public function name() : string
112
    {
113 4
        return $this->name;
114
    }
115
116
    /**
117
     * @return string
118
     */
119 4
    public function path() : string
120
    {
121 4
        return $this->path;
122
    }
123
124
    /**
125
     * @return string
126
     */
127 4
    public function content() : string
128
    {
129 4
        return $this->content;
130
    }
131
132
    /**
133
     * @return string
134
     */
135 4
    public function sha() : string
136
    {
137 4
        return $this->sha;
138
    }
139
140
    /**
141
     * @return string
142
     */
143 4
    public function url() : string
144
    {
145 4
        return $this->url;
146
    }
147
148
    /**
149
     * @return string
150
     */
151 4
    public function gitUrl() : string
152
    {
153 4
        return $this->git_url;
154
    }
155
156
    /**
157
     * @return string
158
     */
159 4
    public function htmlUrl() : string
160
    {
161 4
        return $this->html_url;
162
    }
163
164
    /**
165
     * @return string
166
     */
167 4
    public function downloadUrl() : string
168
    {
169 4
        return $this->download_url;
170
    }
171
172
    /**
173
     * @return string
174
     */
175 4
    public function repositoryFullname(): string
176
    {
177 4
        return $this->repository_fullname;
178
    }
179
180
    /**
181
     * @return Links
182
     */
183
    public function links() : Links
184
    {
185
        return $this->_links;
186
    }
187
}
188