protected function resolveCode($code)
    {
        try {
            $value = $this->getApplication()->execute($code, true);
        } catch (\Exception $e) {
            // Swallow all exceptions?
        }

        if (!isset($value) || $value instanceof NoReturnValue) {
            throw new RuntimeException('Unknown target: ' . $code);
        }

        return $value;
    }
protected function resolveCode($code)
    {
        try {
            $value = $this->getApplication()->execute($code, true);
        } catch (\Exception $e) {
            // Swallow all exceptions?
        }

        if (!isset($value) || $value instanceof NoReturnValue) {
            throw new RuntimeException('Unknown target: ' . $code);
        }

        return $value;
    }
protected function resolveCode ( $ code ) { try { $ value = $ this -> getApplication ( ) -> execute ( $ code , true ) ; } catch ( \ Exception $ e ) { // Swallow all exceptions? } if ( ! isset ( $ value ) || $ value instanceof NoReturnValue ) { throw new RuntimeException ( 'Unknown target: ' . $ code ) ; } return $ value ; }
Resolve code to a value in the current scope.

@throws RuntimeException when the code does not return a value in the current scope

@param string $code

@return mixed Variable value
Resolve code to a value in the current scope .