Completed
Pull Request — master (#4143)
by Craig
12:05 queued 01:23
created
PermissionsModule/Listener/ControllerPermAnnotationReaderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         if (!$this->hasRouteAttribute($segment)) {
143 143
             return $segment;
144 144
         }
145
-        if (1 !== preg_match('/(\$[^:\n]+)/' , $segment, $matches)) {
145
+        if (1 !== preg_match('/(\$[^:\n]+)/', $segment, $matches)) {
146 146
             throw new AnnotationException('Invalid schema in @Annotation: @PermRequired(). Could not match route attributes');
147 147
         }
148 148
         unset($matches[0]); // first key is unneeded full match
Please login to merge, or discard this patch.