WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader

AutoloadProcessor::processPsr4Packages() public WC 1.0

Processes the PSR-4 autoloads into a relative path format including the version for each file.

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

No Hooks.

Return

Array. $processed

Usage

$AutoloadProcessor = new AutoloadProcessor();
$AutoloadProcessor->processPsr4Packages( $autoloads, $scanPsrPackages );
$autoloads(array) (required)
The autoloads we are processing.
$scanPsrPackages(true|false) (required)
Whether or not PSR packages should be converted to a classmap.

Code of AutoloadProcessor::processPsr4Packages() WC 5.3.0

<?php
public function processPsr4Packages( $autoloads, $scanPsrPackages ) {
	if ( $scanPsrPackages || empty( $autoloads['psr-4'] ) ) {
		return null;
	}

	$processed = array();

	foreach ( $autoloads['psr-4'] as $namespace => $packages ) {
		$namespace = empty( $namespace ) ? null : $namespace;
		$paths     = array();

		foreach ( $packages as $package ) {
			$paths[] = call_user_func( $this->pathCodeTransformer, $package['path'] );
		}

		$processed[ $namespace ] = array(
			'version' => $package['version'],
			'path'    => $paths,
		);
	}

	return $processed;
}