Code Duplication    Length = 4-4 lines in 2 locations

tests/PhpSpreadsheetTests/Custom/ComplexAssert.php 2 locations

@@ 25-28 (lines=4) @@
22
        $actualComplex = new Complex($actual);
23
24
        if (!is_numeric($actualComplex->getReal()) || !is_numeric($expectedComplex->getReal())) {
25
            if ($actualComplex->getReal() !== $expectedComplex->getReal()) {
26
                $this->_errorMessage = 'Mismatched String: ' . $actualComplex->getReal() . ' !== ' . $expectedComplex->getReal();
27
28
                return false;
29
            }
30
31
            return true;
@@ 48-51 (lines=4) @@
45
            return false;
46
        }
47
48
        if ($actualComplex->getSuffix() !== $actualComplex->getSuffix()) {
49
            $this->_errorMessage = 'Mismatched Suffix: ' . $actualComplex->getSuffix() . ' != ' . $expectedComplex->getSuffix();
50
51
            return false;
52
        }
53
54
        return true;