Fix this one string street + number
@example street + number
@param type $street
@return type $street
437953
protected function formatStreet($street, $klarna)
    {
        $formatStreetOnMultiStreetLines = false;

        /*
         * If ignore second line steet is enabled for klarna only look at the first addressfield
         * and try to substract housenumber
         */
        if ($klarna) {
            if ($this->getConfigData('ignore_second_address_field', 'adyen_openinvoice')) {
                $formatStreetOnMultiStreetLines = true;
            }
        }

        if (!$formatStreetOnMultiStreetLines && count($street) != 1) {
            return $street;
        }

        preg_match('/\s(\d+.*)$/i', $street['0'], $houseNumber, PREG_OFFSET_CAPTURE);
        if (!empty($houseNumber['0'])) {
            $_houseNumber = trim($houseNumber['0']['0']);
            $position = $houseNumber['0']['1'];
            $streeName = trim(substr($street['0'], 0, $position));
            $street = array($streeName, $_houseNumber);
        }

        return $street;
    }
391200
public function digits($msg)
    {
        if(strlen($this->_value) > 0 && !ctype_digit((string) $this->_value)) {
            $this->_errors[] = $msg;
        }
        return $this;
    }
1036974
public function setStreet($street)
    {
        if (!is_string($street)) {
            $street = strval($street);
        }

        $this->street = $street;
    }
687108
public static function isStreetNumber($string) {
        static $pattern = '/^[0-9A-Za-z-\/]+$/';
        return is_string($string) && strlen($string) && preg_match($pattern, strtolower($string));
    }
269134
public function prepend($string)
	{
		ArgumentValidator::validateScalar($string);
		$this->string = (string)$string . $this->string;
		return $this;
	}
588219
public static function streetAddress($withSecondary = false)
    {
        $formats = array('##### %s', '#### %s', '### %s');
        shuffle($formats);
        $streetAddress = static::numerify(sprintf(current($formats), static::streetName()));
        if ($withSecondary) {
            $streetAddress .= ' ' . static::secondaryAddress();
        }

        return $streetAddress;
    }
995609
static function format_number($number) {
        $formatted = rtrim(format_float($number, 4),'0');
        if (substr($formatted, -1)==get_string('decsep', 'langconfig')) { //if last char is the decimal point
            $formatted .= '0';
        }
        return $formatted;
    }
1132675
public function getCoordinates(
        ?string $street = null,
        ?string $streetNumber = null,
        ?string $city = null,
        ?string $zip = null,
        ?string $country = null
    ): Coordinates {
        $items = [];
        $variables = [$street, $streetNumber, $city, $zip, $country];
        foreach ($variables as $variable) {
            if (empty($variable)) {
                continue;
            }

            $items[] = $variable;
        }

        $results = $this->doCall(array(
            'address' => implode(' ', $items),
            'sensor' => 'false'
        ));

        if (!array_key_exists(0, $results)) {
            throw Exception::noCoordinatesFoundforAddress($variables);
        }

        return new Coordinates(
            $results[0]->geometry->location->lat,
            $results[0]->geometry->location->lng
        );
    }
485730
public static function fromString($number)
    {
        $decimalSeparatorPosition = strpos($number, '.');
        if ($decimalSeparatorPosition === false) {
            return new self($number, '');
        }

        return new self(
            substr($number, 0, $decimalSeparatorPosition),
            rtrim(substr($number, $decimalSeparatorPosition + 1), '0')
        );
    }
1208725
public function number($number = null)
    {
        if ($number !== null) {
            $this->number = $this->escape($number);
            return $this;
        }
        return $this->number;
    }
407165
private static String adaptNumber(String number) {
		String n = number.trim();
		if(n.startsWith("+")) {
			return n.substring(1);
		} else {
			return n;
		}
	}
1077726
public static function intToRoman(int $number): string
    {
        if ($number > 4999) {
            return (string) $number;
        }

        $romanNumber = '';
        foreach (static::$romanNumerals as $intNumeral => $romanNumeral) {
            $d = floor($number / $intNumeral);
            $romanNumber .= str_repeat($romanNumeral, $d);
            $number -= $d * $intNumeral;
        }

        return $romanNumber;
    }
1159986
public function minus($number)
    {
        self::mustBeNumeric($number, 'Value to substract');
        
        $number = is_object($number) ? $number->value : $number;
        
        return new self($this->value - $number);
    }
720069
private function setStreet(string $street): AddressEmbeddableInterface
    {
        $this->notifyEmbeddablePrefixedProperties(
            'street',
            $this->street,
            $street
        );
        $this->street = $street;

        return $this;
    }
142024
public function zeroNumber($number = 0, $length = 5)
    {
        $no = '';
        if (strlen($number) < $length) {
            for ($i = strlen($number); $i < $length; $i++) {
                $no .= '0';
            }
        }

        $no .= $number;
        return $no;
    }
1177594
function parseNumber( str ) {
	var v = parseFloat( str );
	if ( isnan( v ) ) {
		return new TypeError( 'invalid value. Unable to parse string as a number. Value: `' + str + '`.' );
	}
	return v;
}
1175483
public function convertToString($number, $letter = 'a', $i = 0)
    {
        if (!is_numeric($number)) {
            return $number;
        }

        while ($i < $number) {
            $i++;
            $letter++;
        }

        return $letter;
    }