Code Duplication    Length = 5-5 lines in 2 locations

tests/PhpSpreadsheetTests/Custom/ComplexAssert.php 2 locations

@@ 34-38 (lines=5) @@
31
            return true;
32
        }
33
34
        if ($actualComplex->getReal() < ($expectedComplex->getReal() - $delta) ||
35
            $actualComplex->getReal() > ($expectedComplex->getReal() + $delta)) {
36
            $this->_errorMessage = 'Mismatched Real part: ' . $actualComplex->getReal() . ' != ' . $expectedComplex->getReal();
37
38
            return false;
39
        }
40
41
        if ($actualComplex->getImaginary() < ($expectedComplex->getImaginary() - $delta) ||
@@ 41-45 (lines=5) @@
38
            return false;
39
        }
40
41
        if ($actualComplex->getImaginary() < ($expectedComplex->getImaginary() - $delta) ||
42
            $actualComplex->getImaginary() > ($expectedComplex->getImaginary() + $delta)) {
43
            $this->_errorMessage = 'Mismatched Imaginary part: ' . $actualComplex->getImaginary() . ' != ' . $expectedComplex->getImaginary();
44
45
            return false;
46
        }
47
48
        if ($actualComplex->getSuffix() !== $actualComplex->getSuffix()) {