src/extensions/DatatypeTrait.php
private function getMostFrequentDatatypeForColumn($datatypes) {
        // remove 'false' from array (can happen if CSV cell is empty)
        $typesFiltered = array_filter($datatypes);

        if (empty($typesFiltered)) {
            return false;
        }

        $typesFreq = array_count_values($typesFiltered);
        arsort($typesFreq);
        reset($typesFreq);

        return key($typesFreq);

    }
private function getMostFrequentDatatypeForColumn($datatypes) {
        // remove 'false' from array (can happen if CSV cell is empty)
        $typesFiltered = array_filter($datatypes);

        if (empty($typesFiltered)) {
            return false;
        }

        $typesFreq = array_count_values($typesFiltered);
        arsort($typesFreq);
        reset($typesFreq);

        return key($typesFreq);

    }
private function getMostFrequentDatatypeForColumn ( $ datatypes ) { // remove 'false' from array (can happen if CSV cell is empty) $ typesFiltered = array_filter ( $ datatypes ) ; if ( empty ( $ typesFiltered ) ) { return false ; } $ typesFreq = array_count_values ( $ typesFiltered ) ; arsort ( $ typesFreq ) ; reset ( $ typesFreq ) ; return key ( $ typesFreq ) ; }
Check data type for one column.
Check for most commonly data type for one column.

@param  array $datatypes

@return string|false
Check data type for one column . Check for most commonly data type for one column .