public function getContent()
	{
		$api = $this->getApi();
		$response = $api->get($this->getApiUrl());
		$content = $api->decode($response);

		$links = [];

		$title = $this->getConfig('log_title');
		$log = "# $title\n\n";

		foreach($content as $release)
		{
			// published_at for release date
			$date = substr($release->published_at, 0, 10);

			// tag_name for the release title
			$log .= "## [{$release->tag_name}] - $date\n";

			// body for the release changes
			$log .= $release->body."\n";

			// html_url for links added at the end
			$links[] = "[{$release->tag_name}]: {$release->html_url}";
		}

		return explode("\n", $log . "\n" . implode("\n", $links));
	}
public function getContent()
	{
		$api = $this->getApi();
		$response = $api->get($this->getApiUrl());
		$content = $api->decode($response);

		$links = [];

		$title = $this->getConfig('log_title');
		$log = "# $title\n\n";

		foreach($content as $release)
		{
			// published_at for release date
			$date = substr($release->published_at, 0, 10);

			// tag_name for the release title
			$log .= "## [{$release->tag_name}] - $date\n";

			// body for the release changes
			$log .= $release->body."\n";

			// html_url for links added at the end
			$links[] = "[{$release->tag_name}]: {$release->html_url}";
		}

		return explode("\n", $log . "\n" . implode("\n", $links));
	}
public function getContent ( ) { $ api = $ this -> getApi ( ) ; $ response = $ api -> get ( $ this -> getApiUrl ( ) ) ; $ content = $ api -> decode ( $ response ) ; $ links = [ ] ; $ title = $ this -> getConfig ( 'log_title' ) ; $ log = "# $title\n\n" ; foreach ( $ content as $ release ) { // published_at for release date $ date = substr ( $ release -> published_at , 0 , 10 ) ; // tag_name for the release title $ log .= "## [{$release->tag_name}] - $date\n" ; // body for the release changes $ log .= $ release -> body . "\n" ; // html_url for links added at the end $ links [ ] = "[{$release->tag_name}]: {$release->html_url}" ; } return explode ( "\n" , $ log . "\n" . implode ( "\n" , $ links ) ) ; }
Returns the content of the change log to be parsed.
The returned data should be an array of strings, one entry for each file line.

@return array
Returns the content of the change log to be parsed . The returned data should be an array of strings one entry for each file line .