Code Duplication    Length = 7-7 lines in 2 locations

src/Check/PhpIniCheck.php 2 locations

@@ 133-139 (lines=7) @@
130
    protected function checkNumber()
131
    {
132
        $result = new Result($this->label);
133
        if (!is_null($this->varValue)) {
134
            if ($this->iniValue < $this->varValue) {
135
                $result->setSuccess(false);
136
                $result->setError("php.ini value of '".$this->varName."' is set to '".strval($this->iniValue)."', minimum expected is '".strval($this->varValue)."'");
137
                return $result;
138
            }
139
        }
140
        if (!is_null($this->maxValue)) {
141
            if ($this->iniValue > $this->maxValue) {
142
                $result->setSuccess(false);
@@ 140-146 (lines=7) @@
137
                return $result;
138
            }
139
        }
140
        if (!is_null($this->maxValue)) {
141
            if ($this->iniValue > $this->maxValue) {
142
                $result->setSuccess(false);
143
                $result->setError("php.ini value of '".$this->varName."' is set to '".strval($this->iniValue)."', maximum expected is '".strval($this->maxValue)."'");
144
                return $result;
145
            }
146
        }
147
        $result->setError("php.ini value of '".$this->varName."' is set to '".strval($this->iniValue));
148
        return $result;
149
    }