Passed
Push — master ( 9d0dde...4d39d5 )
by Jan
08:02
created
src/Security/Voter/ExtendedVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Security/Voter/PartVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Entity/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.