mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
only renamed variable
This commit is contained in:
@@ -25,13 +25,13 @@ trait DatatypeTrait {
|
|||||||
*/
|
*/
|
||||||
private function getMostFrequentDatatypeForColumn($datatypes) {
|
private function getMostFrequentDatatypeForColumn($datatypes) {
|
||||||
// remove 'false' from array (can happen if CSV cell is empty)
|
// remove 'false' from array (can happen if CSV cell is empty)
|
||||||
$types_filtered = array_filter($datatypes);
|
$typesFiltered = array_filter($datatypes);
|
||||||
|
|
||||||
if (empty($types_filtered)) {
|
if (empty($typesFiltered)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$typesFreq = array_count_values($types_filtered);
|
$typesFreq = array_count_values($typesFiltered);
|
||||||
arsort($typesFreq);
|
arsort($typesFreq);
|
||||||
reset($typesFreq);
|
reset($typesFreq);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user