public static function assertNumberFormat($number)
    {
        if (is_float($number)) {
            throw new \InvalidArgumentException(sprintf('The provided value "%s" must be a string, not a float.', $number));
        }
        if (!is_numeric($number)) {
            throw new \InvalidArgumentException(sprintf('The provided value "%s" is not a numeric value.', $number));
        }
    }
public static function assertNumberFormat($number)
    {
        if (is_float($number)) {
            throw new \InvalidArgumentException(sprintf('The provided value "%s" must be a string, not a float.', $number));
        }
        if (!is_numeric($number)) {
            throw new \InvalidArgumentException(sprintf('The provided value "%s" is not a numeric value.', $number));
        }
    }
public static function assertNumberFormat ( $ number ) { if ( is_float ( $ number ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The provided value "%s" must be a string, not a float.' , $ number ) ) ; } if ( ! is_numeric ( $ number ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The provided value "%s" is not a numeric value.' , $ number ) ) ; } }
Assert that the given number is a numeric string value.

@param string $number The number to check.

@throws \InvalidArgumentException
Assert that the given number is a numeric string value .