WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpe7838abe751421865f42aa61338ab306

Version_Loader::select_newest_file() private WC 1.0

Compares different class sources and returns the newest.

{} It's a method of the class: Version_Loader{}

No Hooks.

Return

Array|null. $data

Usage

// private - for code of main (parent) class only
$result = $this->select_newest_file( $classmap_data, $psr4_data );
$classmap_data(array|null) (required)
The classmap class data.
$psr4_data(array|null) (required)
The PSR-4 class data.

Code of Version_Loader::select_newest_file() WC 5.2.2

<?php
private function select_newest_file( $classmap_data, $psr4_data ) {
	if ( ! isset( $classmap_data ) ) {
		return $psr4_data;
	} elseif ( ! isset( $psr4_data ) ) {
		return $classmap_data;
	}

	if ( $this->version_selector->is_version_update_required( $classmap_data['version'], $psr4_data['version'] ) ) {
		return $psr4_data;
	}

	return $classmap_data;
}