protected function get_changelog_filename( $repo ) {
		$changelogs  = [ 'CHANGES.md', 'CHANGELOG.md', 'changes.md', 'changelog.md' ];
		$changes     = null;
		$local_files = null;

		if ( is_dir( $repo->local_path ) ) {
			$local_files = scandir( $repo->local_path, 0 );
		}

		$changes = array_intersect( (array) $local_files, $changelogs );
		$changes = array_pop( $changes );

		if ( ! empty( $changes ) ) {
			return $changes;
		}

		return false;
	}
protected function get_changelog_filename( $repo ) {
		$changelogs  = [ 'CHANGES.md', 'CHANGELOG.md', 'changes.md', 'changelog.md' ];
		$changes     = null;
		$local_files = null;

		if ( is_dir( $repo->local_path ) ) {
			$local_files = scandir( $repo->local_path, 0 );
		}

		$changes = array_intersect( (array) $local_files, $changelogs );
		$changes = array_pop( $changes );

		if ( ! empty( $changes ) ) {
			return $changes;
		}

		return false;
	}
protected function get_changelog_filename ( $ repo ) { $ changelogs = [ 'CHANGES.md' , 'CHANGELOG.md' , 'changes.md' , 'changelog.md' ] ; $ changes = null ; $ local_files = null ; if ( is_dir ( $ repo -> local_path ) ) { $ local_files = scandir ( $ repo -> local_path , 0 ) ; } $ changes = array_intersect ( ( array ) $ local_files , $ changelogs ) ; $ changes = array_pop ( $ changes ) ; if ( ! empty ( $ changes ) ) { return $ changes ; } return false ; }
Get filename of changelog and return.

@param \stdClass $repo

@return bool|string
Get filename of changelog and return .