source/Core/GenericImport/GenericImport.php
protected function mapFields($data)
    {
        $result = [];
        $index = 0;

        foreach ($this->csvFileFieldsOrder as $value) {
            if (!empty($value)) {
                if (strtolower($data[$index]) == 'null') {
                    $result[$value] = null;
                } else {
                    $result[$value] = $data[$index];
                }
            }
            $index++;
        }

        return $result;
    }
protected function mapFields($data)
    {
        $result = [];
        $index = 0;

        foreach ($this->csvFileFieldsOrder as $value) {
            if (!empty($value)) {
                if (strtolower($data[$index]) == 'null') {
                    $result[$value] = null;
                } else {
                    $result[$value] = $data[$index];
                }
            }
            $index++;
        }

        return $result;
    }
protected function mapFields ( $ data ) { $ result = [ ] ; $ index = 0 ; foreach ( $ this -> csvFileFieldsOrder as $ value ) { if ( ! empty ( $ value ) ) { if ( strtolower ( $ data [ $ index ] ) == 'null' ) { $ result [ $ value ] = null ; } else { $ result [ $ value ] = $ data [ $ index ] ; } } $ index ++ ; } return $ result ; }
Maps numeric array to assoc. Array

@param array $data numeric indices

@return array assoc. indices
Maps numeric array to assoc . Array