src/ConfigFile.php
private function getNativeValueFromDefinition($value)
    {
        if ($this->strStartsWith($value, "'") && $this->strEndsWith($value, "'")) {
            $value = trim(trim($value, "'")); // single quote
        } else {
            if ($this->strStartsWith($value, '"') && $this->strEndsWith($value, '"')) {
                $value = trim(trim($value, '"')); // double quote
            } else {
                if ($value == 'true') {
                    $value = true;
                } else {
                    if ($value == 'false') {
                        $value = false;
                    } else {
                        if (is_numeric($value)) {
                            if (ctype_digit($value)) {
                                return (integer)$value;
                            } else {
                                return (float)$value;
                            }
                        }
                    }
                }
            }
        }

        return $value;
    }
private function getNativeValueFromDefinition($value)
    {
        if ($this->strStartsWith($value, "'") && $this->strEndsWith($value, "'")) {
            $value = trim(trim($value, "'")); // single quote
        } else {
            if ($this->strStartsWith($value, '"') && $this->strEndsWith($value, '"')) {
                $value = trim(trim($value, '"')); // double quote
            } else {
                if ($value == 'true') {
                    $value = true;
                } else {
                    if ($value == 'false') {
                        $value = false;
                    } else {
                        if (is_numeric($value)) {
                            if (ctype_digit($value)) {
                                return (integer)$value;
                            } else {
                                return (float)$value;
                            }
                        }
                    }
                }
            }
        }

        return $value;
    }
private function getNativeValueFromDefinition ( $ value ) { if ( $ this -> strStartsWith ( $ value , "'" ) && $ this -> strEndsWith ( $ value , "'" ) ) { $ value = trim ( trim ( $ value , "'" ) ) ; // single quote } else { if ( $ this -> strStartsWith ( $ value , '"' ) && $ this -> strEndsWith ( $ value , '"' ) ) { $ value = trim ( trim ( $ value , '"' ) ) ; // double quote } else { if ( $ value == 'true' ) { $ value = true ; } else { if ( $ value == 'false' ) { $ value = false ; } else { if ( is_numeric ( $ value ) ) { if ( ctype_digit ( $ value ) ) { return ( integer ) $ value ; } else { return ( float ) $ value ; } } } } } } return $ value ; }
Cast declared value to internal type

@param  string $value
@return mixed
Cast declared value to internal type