@@ -63,7 +63,7 @@ |
||
63 | 63 | // if the user is anonymous, we use the anonymous user. |
64 | 64 | if (!$user instanceof User) { |
65 | 65 | $user = $this->entityManager->find(User::class, User::ID_ANONYMOUS); |
66 | - if($user === null) { |
|
66 | + if ($user === null) { |
|
67 | 67 | return false; |
68 | 68 | } |
69 | 69 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | protected function voteOnUser($attribute, $subject, User $user): bool |
42 | 42 | { |
43 | - if($subject instanceof Part) { |
|
43 | + if ($subject instanceof Part) { |
|
44 | 44 | //Null concealing operator means, that no |
45 | 45 | return $this->resolver->inherit($user, 'parts', $attribute) ?? false; |
46 | 46 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | class User extends NamedDBElement implements UserInterface, HasPermissionsInterface |
49 | 49 | { |
50 | 50 | /** The User id of the anonymous user */ |
51 | - const ID_ANONYMOUS = 1; |
|
51 | + const ID_ANONYMOUS = 1; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * @ORM\Id() |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | public function getIDString(): string |
217 | 217 | { |
218 | - return 'U' . sprintf('%06d', $this->getID()); |
|
218 | + return 'U'.sprintf('%06d', $this->getID()); |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | public function setName(string $new_name) : NamedDBElement |
232 | 232 | { |
233 | 233 | // Anonymous user is not allowed to change its username |
234 | - if(!$this->isAnonymousUser()) { |
|
234 | + if (!$this->isAnonymousUser()) { |
|
235 | 235 | $this->name = $new_name; |
236 | 236 | } |
237 | 237 |