src/Config/Proxy.php
public static function parseIntHelper($value)
    {
        if ($value == '') {
            return null;
        }

        if (is_int($value)) {
            return $value;
        }

        if (ctype_digit($value)) {
            return (int) $value;
        }

        if (strpos('+-', $value[0]) !== false && ctype_digit(substr($value, 1))) {
            return (int) $value;
        }

        return null;
    }
public static function parseIntHelper($value)
    {
        if ($value == '') {
            return null;
        }

        if (is_int($value)) {
            return $value;
        }

        if (ctype_digit($value)) {
            return (int) $value;
        }

        if (strpos('+-', $value[0]) !== false && ctype_digit(substr($value, 1))) {
            return (int) $value;
        }

        return null;
    }
public static function parseIntHelper ( $ value ) { if ( $ value == '' ) { return null ; } if ( is_int ( $ value ) ) { return $ value ; } if ( ctype_digit ( $ value ) ) { return ( int ) $ value ; } if ( strpos ( '+-' , $ value [ 0 ] ) !== false && ctype_digit ( substr ( $ value , 1 ) ) ) { return ( int ) $ value ; } return null ; }
Parses a text and tries to extract an integer value.

\param string $value
The text from which an integer should be extracted.

\retval int
If an integer could be extracted from the $value provided,
it is returned as the corresponding PHP (signed) integer value.

\retval null
If no integer could be extracted.
Parses a text and tries to extract an integer value .