public function getMainScriptContents()
    {
        if (null !== ($path = $this->getMainScriptPath())) {
            $path = $this->getBasePath() . DIRECTORY_SEPARATOR . $path;

            if (false === ($contents = @file_get_contents($path))) {
                $errors = error_get_last();
                if ($errors === null) {
                    $errors = array('message' => 'failed to get contents of \''.$path.'\'');
                }

                throw new RuntimeException($errors['message']);
            }

            return preg_replace('/^#!.*\s*/', '', $contents);
        }

        return null;
    }
public function getMainScriptContents()
    {
        if (null !== ($path = $this->getMainScriptPath())) {
            $path = $this->getBasePath() . DIRECTORY_SEPARATOR . $path;

            if (false === ($contents = @file_get_contents($path))) {
                $errors = error_get_last();
                if ($errors === null) {
                    $errors = array('message' => 'failed to get contents of \''.$path.'\'');
                }

                throw new RuntimeException($errors['message']);
            }

            return preg_replace('/^#!.*\s*/', '', $contents);
        }

        return null;
    }
public function getMainScriptContents ( ) { if ( null !== ( $ path = $ this -> getMainScriptPath ( ) ) ) { $ path = $ this -> getBasePath ( ) . DIRECTORY_SEPARATOR . $ path ; if ( false === ( $ contents = @ file_get_contents ( $ path ) ) ) { $ errors = error_get_last ( ) ; if ( $ errors === null ) { $ errors = array ( 'message' => 'failed to get contents of \'' . $ path . '\'' ) ; } throw new RuntimeException ( $ errors [ 'message' ] ) ; } return preg_replace ( '/^#!.*\s*/' , '' , $ contents ) ; } return null ; }
Returns the processed contents of the main script file.

@return string The contents.

@throws RuntimeException If the file could not be read.
Returns the processed contents of the main script file .