@@ -15,7 +15,7 @@ |
||
| 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 | |
@@ -29,7 +29,7 @@ |
||
| 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 | } |