Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering.php
private static function cleanComplex($complexNumber)
    {
        if ($complexNumber[0] == '+') {
            $complexNumber = substr($complexNumber, 1);
        }
        if ($complexNumber[0] == '0') {
            $complexNumber = substr($complexNumber, 1);
        }
        if ($complexNumber[0] == '.') {
            $complexNumber = '0' . $complexNumber;
        }
        if ($complexNumber[0] == '+') {
            $complexNumber = substr($complexNumber, 1);
        }

        return $complexNumber;
    }
private static function cleanComplex($complexNumber)
    {
        if ($complexNumber[0] == '+') {
            $complexNumber = substr($complexNumber, 1);
        }
        if ($complexNumber[0] == '0') {
            $complexNumber = substr($complexNumber, 1);
        }
        if ($complexNumber[0] == '.') {
            $complexNumber = '0' . $complexNumber;
        }
        if ($complexNumber[0] == '+') {
            $complexNumber = substr($complexNumber, 1);
        }

        return $complexNumber;
    }
Cleans the leading characters in a complex number string.

@param string $complexNumber The complex number to clean

@return string The "cleaned" complex number