Code Duplication    Length = 4-4 lines in 2 locations

src/Check/PhpVersionCheck.php 2 locations

@@ 42-45 (lines=4) @@
39
        $result = new Result($this->label);
40
41
        $phpVersion = $this->getPhpVersion();
42
        if (null !== $this->greaterEquals && !version_compare($this->greaterEquals, $phpVersion, '<=')) {
43
            $result->setSuccess(false);
44
            $result->setError("PHP version must be >= {$this->greaterEquals}; is " . $phpVersion);
45
        }
46
47
        if (null !== $this->lessThan && !version_compare($this->lessThan, $phpVersion, '>')) {
48
            $result->setSuccess(false);
@@ 47-50 (lines=4) @@
44
            $result->setError("PHP version must be >= {$this->greaterEquals}; is " . $phpVersion);
45
        }
46
47
        if (null !== $this->lessThan && !version_compare($this->lessThan, $phpVersion, '>')) {
48
            $result->setSuccess(false);
49
            $result->setError("PHP version must be < {$this->lessThan}; is " . $phpVersion);
50
        }
51
52
        return $result;
53
    }