From d03f8a2f09dc3ab41cb632fbaba47010eb168b4b Mon Sep 17 00:00:00 2001 From: Fonata Date: Sat, 23 Feb 2019 12:47:50 +0100 Subject: [PATCH] Simplified code; shouldn't change results --- src/extensions/DatatypeTrait.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/extensions/DatatypeTrait.php b/src/extensions/DatatypeTrait.php index c8cf46d..4e198cd 100644 --- a/src/extensions/DatatypeTrait.php +++ b/src/extensions/DatatypeTrait.php @@ -98,10 +98,6 @@ trait DatatypeTrait { $firstRowDatatype = array_map(DatatypeEnum::class . '::getValidTypeFromSample', $firstRow); - if ($this->getMostFrequentDatatypeForColumn($firstRowDatatype) !== DatatypeEnum::TYPE_STRING){ - return false; - } - - return true; + return $this->getMostFrequentDatatypeForColumn($firstRowDatatype) === DatatypeEnum::TYPE_STRING; } }