Skip to content

Commit

Permalink
Remove duplicate code move to yiisoft/db/Schema::class. (#152)
Browse files Browse the repository at this point in the history
* Remove duplicate code move to yiisoft/db/Schema::class.
  • Loading branch information
terabytesoftw committed Dec 10, 2022
1 parent cf7f4b5 commit 75db32d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Schema.php
Expand Up @@ -658,21 +658,4 @@ protected function getCacheTag(): string
{
return md5(serialize(array_merge([self::class], $this->db->getCacheKey())));
}

/**
* Changes row's array key case to lower.
*
* @param array $row row's array or an array of row's arrays.
* @param bool $multiple whether multiple rows or a single row passed.
*
* @return array normalized row or rows.
*/
protected function normalizeRowKeyCase(array $row, bool $multiple): array
{
if ($multiple) {
return array_map(static fn (array $row) => array_change_key_case($row, CASE_LOWER), $row);
}

return array_change_key_case($row, CASE_LOWER);
}
}

0 comments on commit 75db32d

Please sign in to comment.