Passed
Branch 1.x (d1a99d)
by Marko
02:13
created
src/DependencyInjection/Compiler/AutoRegisterCompilerPass.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace KunicMarko\SonataAnnotationBundle\DependencyInjection\Compiler;
6 6
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
     private function getBaseRole(string $id): string
99 99
     {
100
-        return 'ROLE_'.str_replace('.', '_', strtoupper($id)).'_';
100
+        return 'ROLE_' . str_replace('.', '_', strtoupper($id)) . '_';
101 101
     }
102 102
 
103 103
     private function getRoles(\ReflectionClass $class, string $prefix)
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             }
111 111
 
112 112
             $roles[$annotation->role] = array_map(
113
-                function (string $permission) use ($prefix) {
113
+                function(string $permission) use ($prefix) {
114 114
                     return $prefix . strtoupper($permission);
115 115
                 },
116 116
                 $annotation->permissions
Please login to merge, or discard this patch.