Passed
Pull Request — feature/publishable (#43)
by Daniel
05:45
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
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function validate($data, array $context = [])
39 39
     {
40 40
         if (is_object($data) && $this->publishableHelper->isPublishable($data) && $this->publishableHelper->hasPublicationDate($data)) {
41
-            $groups = [(new \ReflectionClass(get_class($data)))->getShortName().':published'];
41
+            $groups = [(new \ReflectionClass(get_class($data)))->getShortName() . ':published'];
42 42
             if (!empty($this->publishableHelper->getConfiguration($data)->validationGroups)) {
43 43
                 $groups = $this->publishableHelper->getConfiguration($data)->validationGroups;
44 44
             }
Please login to merge, or discard this patch.