Passed
Pull Request — feature/publishable (#43)
by Daniel
05:35
created
src/Annotation/Publishable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,5 +30,5 @@
 block discarded – undo
30 30
     /**
31 31
      * @var string[]
32 32
      */
33
-    public ?array $validationGroups = null;
33
+    public ? array $validationGroups = null;
34 34
 }
Please login to merge, or discard this patch.
src/Validator/PublishableValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         if (is_object($data) && $this->publishableHelper->isPublishable($data) && $this->publishableHelper->hasPublicationDate($data)) {
41 41
             $groups = $context['groups'] ?? ['Default'];
42
-            $groups[] = (new \ReflectionClass(get_class($data)))->getShortName().':published';
42
+            $groups[] = (new \ReflectionClass(get_class($data)))->getShortName() . ':published';
43 43
             $context['groups'] = $groups;
44 44
         }
45 45
 
Please login to merge, or discard this patch.