Passed
Push — master ( ef12cd...4e6119 )
by Olivier
01:31
created
lib/PermissionNotGranted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
         public Context $context,
24 24
         ?Throwable $previous = null
25 25
     ) {
26
-        parent::__construct("Permission not granted for message: " . $dispatched_message::class, 0, $previous);
26
+        parent::__construct("Permission not granted for message: ".$dispatched_message::class, 0, $previous);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
lib/VoterNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
         public string $permission,
24 24
         ?Throwable $previous = null
25 25
     ) {
26
-        parent::__construct("Voter not found for permission: $permission", previous: $previous);
26
+        parent::__construct("Voter not found for permission: $permission", previous : $previous);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
lib/Symfony/MessageBusPassWithAttributes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
             $message = self::resolveMessage($handler);
63 63
 
64 64
             $definition = new Definition($handler);
65
-            $definition->addTag($this->tagForHandler, [ $this->attributeForMessage => $message ]);
65
+            $definition->addTag($this->tagForHandler, [$this->attributeForMessage => $message]);
66 66
 
67 67
             foreach ($permissions[$message] ?? [] as $permission) {
68
-                $definition->addTag($this->tagForPermission, [ $this->attributeForPermission => $permission ]);
68
+                $definition->addTag($this->tagForPermission, [$this->attributeForPermission => $permission]);
69 69
             }
70 70
 
71 71
             $definitions[$handler] = $definition;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $permission = $targetClass->attribute->permission;
77 77
 
78 78
             $definition = new Definition($voter);
79
-            $definition->addTag($this->tagForVoter, [ $this->attributeForPermission => $permission ]);
79
+            $definition->addTag($this->tagForVoter, [$this->attributeForPermission => $permission]);
80 80
 
81 81
             $definitions[$voter] = $definition;
82 82
         }
Please login to merge, or discard this patch.