Passed
Pull Request — master (#1361)
by
unknown
02:46
created
src/Annotation/Semver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     public function __construct($values = [], ?string $version = null)
17 17
     {
18
-        if (!class_exists(ComposerSemver::class)) {
18
+        if ( ! class_exists(ComposerSemver::class)) {
19 19
             throw new \LogicException(sprintf('composer/semver must be installed to use "%s".', self::class));
20 20
         }
21 21
 
Please login to merge, or discard this patch.
src/Exclusion/VersionExclusionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function shouldSkipProperty(PropertyMetadata $property, Context $navigatorContext): bool
30 30
     {
31 31
         //if ((null !== $constraints = $property->semverConstraints) && Semver::satisfies($this->version, $constraints)) {
32
-        if ((null !== $constraints = $property->semverConstraints) && !Semver::satisfies($this->version, $constraints)) {
32
+        if ((null !== $constraints = $property->semverConstraints) && ! Semver::satisfies($this->version, $constraints)) {
33 33
             //var_dump('version: '.$this->version.', constraints: '.$constraints.', satisfies: '.var_export(Semver::satisfies($this->version, $constraints), true));
34 34
             return true;
35 35
         }
Please login to merge, or discard this patch.