src/Factory/UploadedFilesFactory.php
protected static function normalizeNested(array $files)
    {
        $normalized = [];
        foreach (array_keys($files['tmp_name']) as $key) {
            $spec = [
                'name'     => $files['name'][$key],
                'tmp_name' => $files['tmp_name'][$key],
                'type'     => $files['type'][$key],
                'size'     => $files['size'][$key],
                'error'    => $files['error'][$key],
            ];
            $normalized[$key] = static::build($spec);
        }

        return $normalized;
    }
protected static function normalizeNested(array $files)
    {
        $normalized = [];
        foreach (array_keys($files['tmp_name']) as $key) {
            $spec = [
                'name'     => $files['name'][$key],
                'tmp_name' => $files['tmp_name'][$key],
                'type'     => $files['type'][$key],
                'size'     => $files['size'][$key],
                'error'    => $files['error'][$key],
            ];
            $normalized[$key] = static::build($spec);
        }

        return $normalized;
    }
protected static function normalizeNested ( array $ files ) { $ normalized = [ ] ; foreach ( array_keys ( $ files [ 'tmp_name' ] ) as $ key ) { $ spec = [ 'name' => $ files [ 'name' ] [ $ key ] , 'tmp_name' => $ files [ 'tmp_name' ] [ $ key ] , 'type' => $ files [ 'type' ] [ $ key ] , 'size' => $ files [ 'size' ] [ $ key ] , 'error' => $ files [ 'error' ] [ $ key ] , ] ; $ normalized [ $ key ] = static :: build ( $ spec ) ; } return $ normalized ; }
Normalizes a nested array.

@param array $files The nested array

@return array Normalized array
Normalizes a nested array .