Compiler.php
protected function exportScalar($scalar, $quoteStyle = '\'', $inCode = false)
    {

        if ($scalar === 'null' || $scalar === null)
            return 'null';

        if ($scalar === 'false' || $scalar === false)
            return 'false';

        if ($scalar === 'true' || $scalar === true)
            return 'true';

        $scalar = trim($scalar, '\'"');

        if (is_numeric($scalar))
            return $scalar;

        return $quoteStyle.$this->compileScalar($scalar, $inCode).$quoteStyle;
    }
protected function exportScalar($scalar, $quoteStyle = '\'', $inCode = false)
    {

        if ($scalar === 'null' || $scalar === null)
            return 'null';

        if ($scalar === 'false' || $scalar === false)
            return 'false';

        if ($scalar === 'true' || $scalar === true)
            return 'true';

        $scalar = trim($scalar, '\'"');

        if (is_numeric($scalar))
            return $scalar;

        return $quoteStyle.$this->compileScalar($scalar, $inCode).$quoteStyle;
    }
protected function exportScalar ( $ scalar , $ quoteStyle = '\'' , $ inCode = false ) { if ( $ scalar === 'null' || $ scalar === null ) return 'null' ; if ( $ scalar === 'false' || $ scalar === false ) return 'false' ; if ( $ scalar === 'true' || $ scalar === true ) return 'true' ; $ scalar = trim ( $ scalar , '\'"' ) ; if ( is_numeric ( $ scalar ) ) return $ scalar ; return $ quoteStyle . $ this -> compileScalar ( $ scalar , $ inCode ) . $ quoteStyle ; }
Exports a scalar value to the PHP representation.

This also takes into account the PHP constants
null, false and true, makes sure that numeric-values aren't
string enclosed and utilizes interpolation for string
values.

@param mixed $scalar the scalar value to export
@param string $quoteStyle the quote-style used, ' by default

@return string the exported scalar value
Exports a scalar value to the PHP representation .