/** * @param DbInterface $conn * @return array */ function getTableList($conn) { $tables = $conn->getColumn('SHOW TABLES'); // FIXME: why lowercase neccessary? $tables = Misc::lowercase($tables); return $tables; }
/** * @param DbInterface $conn * @return array */ function getTableList($conn) { $tables = $conn->getColumn('SHOW TABLES'); // FIXME: why lowercase neccessary? $tables = array_map(function ($s) { return strtolower($s); }, $tables); return $tables; }