concrete/src/Package/Package.php
public function getChangelogContents()
    {
        $prefix = $this->getPackagePath() . '/';
        foreach (['CHANGELOG', 'CHANGELOG.txt', 'CHANGELOG.md'] as $name) {
            $file = $prefix . $name;
            if (is_file($file)) {
                $contents = $this->app->make('helper/file')->getContents($file);
                return nl2br(h($contents));
            }
        }

        return '';
    }
public function getChangelogContents()
    {
        $prefix = $this->getPackagePath() . '/';
        foreach (['CHANGELOG', 'CHANGELOG.txt', 'CHANGELOG.md'] as $name) {
            $file = $prefix . $name;
            if (is_file($file)) {
                $contents = $this->app->make('helper/file')->getContents($file);
                return nl2br(h($contents));
            }
        }

        return '';
    }
public function getChangelogContents ( ) { $ prefix = $ this -> getPackagePath ( ) . '/' ; foreach ( [ 'CHANGELOG' , 'CHANGELOG.txt' , 'CHANGELOG.md' ] as $ name ) { $ file = $ prefix . $ name ; if ( is_file ( $ file ) ) { $ contents = $ this -> app -> make ( 'helper/file' ) -> getContents ( $ file ) ; return nl2br ( h ( $ contents ) ) ; } } return '' ; }
Get the contents of the package's CHANGELOG file.

@return string if no changelog is available an empty string is returned
Get the contents of the package s CHANGELOG file .