public static function normalizeFilesArray(array $files): array
    {
        $return = [];
        foreach ($files as $i => $file) {
            foreach ($file as $key => $value) {
                $return[$key][$i] = $value;
            }
        }

        return $return;
    }
public static function normalizeFilesArray(array $files): array
    {
        $return = [];
        foreach ($files as $i => $file) {
            foreach ($file as $key => $value) {
                $return[$key][$i] = $value;
            }
        }

        return $return;
    }
public static function normalizeFilesArray ( array $ files ) : array { $ return = [ ] ; foreach ( $ files as $ i => $ file ) { foreach ( $ file as $ key => $ value ) { $ return [ $ key ] [ $ i ] = $ value ; } } return $ return ; }
Normalize files array.
@param  array $files
@return array
Normalize files array .