RainLab\Builder\Classes\MigrationModel::getOriginalFileContents PHP Method

getOriginalFileContents() protected method

protected getOriginalFileContents ( )
    protected function getOriginalFileContents()
    {
        if (!strlen($this->originalScriptFileName)) {
            return null;
        }
        $scriptFilePath = $this->getPluginUpdatesPath($this->originalScriptFileName . '.php');
        if (File::isFile($scriptFilePath)) {
            return File::get($scriptFilePath);
        }
    }