Completed
Branch master (4407aa)
by ANTHONIUS
03:30 queued 10s
created

User   A

Complexity

Total Complexity 33

Size/Duplication

Total Lines 312
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 66
dl 0
loc 312
ccs 82
cts 82
cp 1
rs 9.76
c 0
b 0
f 0
wmc 33

30 Methods

Rating   Name   Duplication   Size   Complexity  
A getPasswordRequestedAt() 0 3 1
A getRoles() 0 3 1
A getConfirmationToken() 0 3 1
A setConfirmationToken() 0 5 1
A setEmail() 0 5 1
A getUsername() 0 3 1
A setPasswordRequestedAt() 0 5 1
A getPlainPassword() 0 3 1
A setSalt() 0 5 1
A setRoles() 0 9 2
A setPassword() 0 5 1
A setUsername() 0 5 1
A eraseCredentials() 0 3 1
A getUsernameCanonical() 0 3 1
A setEnabled() 0 5 1
A getLastLogin() 0 3 1
A getPassword() 0 3 1
A __construct() 0 4 1
A setLastLogin() 0 5 1
A removeRole() 0 8 2
A getId() 0 3 1
A setEmailCanonical() 0 5 1
A setPlainPassword() 0 5 1
A isEnabled() 0 3 1
A getEmailCanonical() 0 3 1
A addRole() 0 9 2
A getSalt() 0 3 1
A setUsernameCanonical() 0 5 1
A getEmail() 0 3 1
A hasRole() 0 5 1
1
<?php
0 ignored issues
show
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Coding Style introduced by
Filename "User.php" doesn't match the expected filename "user.php"
Loading history...
2
0 ignored issues
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
3
/*
0 ignored issues
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
4
 * This file is part of the DoyoUserBundle project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\UserBundle\Model;
15
16
class User implements UserInterface
0 ignored issues
show
Coding Style Documentation introduced by
Missing doc comment for class User
Loading history...
17
{
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration for class User
Loading history...
18
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
19
     * @var string|int|null
0 ignored issues
show
Bug introduced by
Expected "string|integer|null" but found "string|int|null" for @var tag in member variable comment
Loading history...
20
     */
21
    protected $id;
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line(s) before first member var; 0 found
Loading history...
Coding Style introduced by
Protected member variable "id" must contain a leading underscore
Loading history...
22
23
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
24
     * @var string|null
25
     */
26
    protected $username;
0 ignored issues
show
Coding Style introduced by
Protected member variable "username" must contain a leading underscore
Loading history...
27
28
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
29
     * @var string|null
30
     */
31
    protected $usernameCanonical;
0 ignored issues
show
Coding Style introduced by
Protected member variable "usernameCanonical" must contain a leading underscore
Loading history...
32
33
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
34
     * @var string|null
35
     */
36
    protected $email;
0 ignored issues
show
Coding Style introduced by
Protected member variable "email" must contain a leading underscore
Loading history...
37
38
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
39
     * @var string|null
40
     */
41
    protected $emailCanonical;
0 ignored issues
show
Coding Style introduced by
Protected member variable "emailCanonical" must contain a leading underscore
Loading history...
42
43
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
44
     * @var bool
0 ignored issues
show
Bug introduced by
Expected "boolean" but found "bool" for @var tag in member variable comment
Loading history...
45
     */
46
    protected $enabled;
0 ignored issues
show
Coding Style introduced by
Protected member variable "enabled" must contain a leading underscore
Loading history...
47
48
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
49
     * @var array|null
50
     */
51
    protected $roles;
0 ignored issues
show
Coding Style introduced by
Protected member variable "roles" must contain a leading underscore
Loading history...
52
53
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
54
     * @var string|null
55
     */
56
    protected $plainPassword;
0 ignored issues
show
Coding Style introduced by
Protected member variable "plainPassword" must contain a leading underscore
Loading history...
57
58
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
59
     * @var string|null
60
     */
61
    protected $password;
0 ignored issues
show
Coding Style introduced by
Protected member variable "password" must contain a leading underscore
Loading history...
62
63
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
64
     * @var string|null
65
     */
66
    protected $salt;
0 ignored issues
show
Coding Style introduced by
Protected member variable "salt" must contain a leading underscore
Loading history...
67
68
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
69
     * @var \DateTimeImmutable|null
70
     */
71
    protected $lastLogin;
0 ignored issues
show
Coding Style introduced by
Protected member variable "lastLogin" must contain a leading underscore
Loading history...
72
73
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
74
     * @var string|null
75
     */
76
    protected $confirmationToken;
0 ignored issues
show
Coding Style introduced by
Protected member variable "confirmationToken" must contain a leading underscore
Loading history...
77
78
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
79
     * @var \DateTimeImmutable|null
80
     */
81
    protected $passwordRequestedAt;
0 ignored issues
show
Coding Style introduced by
Protected member variable "passwordRequestedAt" must contain a leading underscore
Loading history...
82
83 7
    public function __construct()
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines before function; 1 found
Loading history...
Coding Style introduced by
Missing doc comment for function __construct()
Loading history...
84
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
85 7
        $this->roles   = ['ROLE_USER'];
0 ignored issues
show
Coding Style introduced by
Short array syntax is not allowed
Loading history...
86 7
        $this->enabled = false;
0 ignored issues
show
Coding Style introduced by
TRUE, FALSE and NULL should be uppercase as per the configured coding-style; instead of false please use FALSE.
Loading history...
87
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end __construct()
Loading history...
88
89
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
90
     * @return int|string|null
0 ignored issues
show
Coding Style introduced by
Expected "integer|string|null" but found "int|string|null" for function return type
Loading history...
91
     */
92 3
    public function getId()
93
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
94 3
        return $this->id;
95
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getId()
Loading history...
96
97
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
98
     * @param string $role
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
99
     *
100
     * @return static
101
     */
102 2
    public function addRole($role)
0 ignored issues
show
Coding Style introduced by
Type hint "string" missing for $role
Loading history...
103
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
104 2
        $role = strtoupper($role);
105
106 2
        if (!$this->hasRole($role)) {
0 ignored issues
show
Coding Style introduced by
Expected 1 space(s) after NOT operator; 0 found
Loading history...
107 2
            $this->roles[] = $role;
108
        }
109
110 2
        return $this;
111
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end addRole()
Loading history...
112
113
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
114
     * @param string $role
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
115
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
116 2
    public function hasRole($role): bool
0 ignored issues
show
Coding Style introduced by
Type hint "string" missing for $role
Loading history...
117
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
118 2
        $role = strtoupper($role);
119
120 2
        return \in_array($role, $this->roles, true);
0 ignored issues
show
Bug introduced by
It seems like $this->roles can also be of type null; however, parameter $haystack of in_array() does only seem to accept array, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

120
        return \in_array($role, /** @scrutinizer ignore-type */ $this->roles, true);
Loading history...
Coding Style introduced by
TRUE, FALSE and NULL should be uppercase as per the configured coding-style; instead of true please use TRUE.
Loading history...
121
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end hasRole()
Loading history...
122
123
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
124
     * @param string $role
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
125
     *
126
     * @return static
127
     */
128 1
    public function removeRole($role)
0 ignored issues
show
Coding Style introduced by
Type hint "string" missing for $role
Loading history...
129
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
130 1
        if (false !== $key = array_search(strtoupper($role), $this->roles, true)) {
0 ignored issues
show
Bug introduced by
It seems like $this->roles can also be of type null; however, parameter $haystack of array_search() does only seem to accept array, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

130
        if (false !== $key = array_search(strtoupper($role), /** @scrutinizer ignore-type */ $this->roles, true)) {
Loading history...
Coding Style introduced by
TRUE, FALSE and NULL should be uppercase as per the configured coding-style; instead of false please use FALSE.
Loading history...
Coding Style introduced by
Variable assignment found within a condition. Did you mean to do a comparison ?
Loading history...
Coding Style introduced by
Assignments must be the first block of code on a line
Loading history...
Coding Style introduced by
TRUE, FALSE and NULL should be uppercase as per the configured coding-style; instead of true please use TRUE.
Loading history...
131 1
            unset($this->roles[$key]);
132 1
            $this->roles = array_values($this->roles);
0 ignored issues
show
Bug introduced by
It seems like $this->roles can also be of type null; however, parameter $input of array_values() does only seem to accept array, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

132
            $this->roles = array_values(/** @scrutinizer ignore-type */ $this->roles);
Loading history...
133
        }
134
135 1
        return $this;
136
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end removeRole()
Loading history...
137
138
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $roles should have a doc-comment as per coding-style.
Loading history...
139
     * @return static
140
     */
141 1
    public function setRoles(?array $roles)
142
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
143 1
        $this->roles = [];
0 ignored issues
show
Coding Style introduced by
Short array syntax is not allowed
Loading history...
144
145 1
        foreach ($roles as $role) {
146 1
            $this->addRole($role);
147
        }
148
149 1
        return $this;
150
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setRoles()
Loading history...
151
152 5
    public function getSalt(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getSalt()
Loading history...
153
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
154 5
        return $this->salt;
155
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getSalt()
Loading history...
156
157
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $salt should have a doc-comment as per coding-style.
Loading history...
158
     * @return static
159
     */
160 5
    public function setSalt(?string $salt)
161
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
162 5
        $this->salt = $salt;
163
164 5
        return $this;
165
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setSalt()
Loading history...
166
167
    /**
168
     * {@inheritdoc}
169
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
170 5
    public function eraseCredentials()
171
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
172 5
        $this->plainPassword = null;
0 ignored issues
show
Coding Style introduced by
TRUE, FALSE and NULL should be uppercase as per the configured coding-style; instead of null please use NULL.
Loading history...
173
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end eraseCredentials()
Loading history...
174
175 2
    public function isEnabled(): bool
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function isEnabled()
Loading history...
176
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
177 2
        return $this->enabled;
178
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end isEnabled()
Loading history...
179
180
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $enabled should have a doc-comment as per coding-style.
Loading history...
181
     * @return static
182
     */
183 5
    public function setEnabled(bool $enabled)
184
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
185 5
        $this->enabled = $enabled;
186
187 5
        return $this;
188
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setEnabled()
Loading history...
189
190 5
    public function getUsername(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getUsername()
Loading history...
191
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
192 5
        return $this->username;
193
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getUsername()
Loading history...
194
195
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $username should have a doc-comment as per coding-style.
Loading history...
196
     * @return static
197
     */
198 5
    public function setUsername(?string $username)
199
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
200 5
        $this->username = $username;
201
202 5
        return $this;
203
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setUsername()
Loading history...
204
205 1
    public function getUsernameCanonical(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getUsernameCanonical()
Loading history...
206
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
207 1
        return $this->usernameCanonical;
208
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getUsernameCanonical()
Loading history...
209
210
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $usernameCanonical should have a doc-comment as per coding-style.
Loading history...
211
     * @return static
212
     */
213 5
    public function setUsernameCanonical(?string $usernameCanonical)
214
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
215 5
        $this->usernameCanonical = $usernameCanonical;
216
217 5
        return $this;
218
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setUsernameCanonical()
Loading history...
219
220 5
    public function getEmail(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getEmail()
Loading history...
221
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
222 5
        return $this->email;
223
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getEmail()
Loading history...
224
225
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $email should have a doc-comment as per coding-style.
Loading history...
226
     * @return static
227
     */
228 5
    public function setEmail(?string $email)
229
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
230 5
        $this->email = $email;
231
232 5
        return $this;
233
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setEmail()
Loading history...
234
235 1
    public function getEmailCanonical(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getEmailCanonical()
Loading history...
236
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
237 1
        return $this->emailCanonical;
238
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getEmailCanonical()
Loading history...
239
240
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $emailCanonical should have a doc-comment as per coding-style.
Loading history...
241
     * @return static
242
     */
243 5
    public function setEmailCanonical(?string $emailCanonical)
244
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
245 5
        $this->emailCanonical = $emailCanonical;
246
247 5
        return $this;
248
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setEmailCanonical()
Loading history...
249
250 4
    public function getRoles(): ?array
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getRoles()
Loading history...
251
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
252 4
        return $this->roles;
253
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getRoles()
Loading history...
254
255 6
    public function getPlainPassword(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getPlainPassword()
Loading history...
256
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
257 6
        return $this->plainPassword;
258
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getPlainPassword()
Loading history...
259
260
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $plainPassword should have a doc-comment as per coding-style.
Loading history...
261
     * @return static
262
     */
263 6
    public function setPlainPassword(?string $plainPassword)
264
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
265 6
        $this->plainPassword = $plainPassword;
266
267 6
        return $this;
268
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setPlainPassword()
Loading history...
269
270 2
    public function getPassword(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getPassword()
Loading history...
271
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
272 2
        return $this->password;
273
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getPassword()
Loading history...
274
275
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $password should have a doc-comment as per coding-style.
Loading history...
276
     * @return static
277
     */
278 5
    public function setPassword(?string $password)
279
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
280 5
        $this->password = $password;
281
282 5
        return $this;
283
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setPassword()
Loading history...
284
285 2
    public function getLastLogin(): ?\DateTimeImmutable
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getLastLogin()
Loading history...
286
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
287 2
        return $this->lastLogin;
288
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getLastLogin()
Loading history...
289
290
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $lastLogin should have a doc-comment as per coding-style.
Loading history...
291
     * @return static
292
     */
293 1
    public function setLastLogin(?\DateTimeImmutable $lastLogin)
294
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
295 1
        $this->lastLogin = $lastLogin;
296
297 1
        return $this;
298
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setLastLogin()
Loading history...
299
300 1
    public function getConfirmationToken(): ?string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getConfirmationToken()
Loading history...
301
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
302 1
        return $this->confirmationToken;
303
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getConfirmationToken()
Loading history...
304
305
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $confirmationToken should have a doc-comment as per coding-style.
Loading history...
306
     * @return static
307
     */
308 1
    public function setConfirmationToken(?string $confirmationToken)
309
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
310 1
        $this->confirmationToken = $confirmationToken;
311
312 1
        return $this;
313
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setConfirmationToken()
Loading history...
314
315 1
    public function getPasswordRequestedAt(): ?\DateTimeImmutable
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getPasswordRequestedAt()
Loading history...
316
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
317 1
        return $this->passwordRequestedAt;
318
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end getPasswordRequestedAt()
Loading history...
319
320
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
Coding Style introduced by
Parameter $passwordRequestedAt should have a doc-comment as per coding-style.
Loading history...
321
     * @return static
322
     */
323 1
    public function setPasswordRequestedAt(?\DateTimeImmutable $passwordRequestedAt)
324
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
325 1
        $this->passwordRequestedAt = $passwordRequestedAt;
326
327 1
        return $this;
328
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 0 found
Loading history...
Coding Style introduced by
Expected 1 blank line before closing function brace; 0 found
Loading history...
Coding Style introduced by
Expected //end setPasswordRequestedAt()
Loading history...
329
}
0 ignored issues
show
Coding Style introduced by
Expected //end class
Loading history...
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
330