src/mako/http/request/Files.php
protected function normalizeMultiUpload(array $files): array
	{
		$normalized = [];

		$keys = array_keys($files);

		$count = count($files['name']);

		for($i = 0; $i < $count; $i++)
		{
			foreach($keys as $key)
			{
				$normalized[$i][$key] = $files[$key][$i];
			}
		}

		return $normalized;
	}
protected function normalizeMultiUpload(array $files): array
	{
		$normalized = [];

		$keys = array_keys($files);

		$count = count($files['name']);

		for($i = 0; $i < $count; $i++)
		{
			foreach($keys as $key)
			{
				$normalized[$i][$key] = $files[$key][$i];
			}
		}

		return $normalized;
	}
protected function normalizeMultiUpload ( array $ files ) : array { $ normalized = [ ] ; $ keys = array_keys ( $ files ) ; $ count = count ( $ files [ 'name' ] ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { foreach ( $ keys as $ key ) { $ normalized [ $ i ] [ $ key ] = $ files [ $ key ] [ $ i ] ; } } return $ normalized ; }
Normalizes a multi file upload array to a more manageable format.

@param  array $files File upload array
@return array
Normalizes a multi file upload array to a more manageable format .