Skip to content

Commit 75db32d

Browse files
Remove duplicate code move to yiisoft/db/Schema::class. (#152)
* Remove duplicate code move to yiisoft/db/Schema::class.
1 parent cf7f4b5 commit 75db32d

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/Schema.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -658,21 +658,4 @@ protected function getCacheTag(): string
658658
{
659659
return md5(serialize(array_merge([self::class], $this->db->getCacheKey())));
660660
}
661-
662-
/**
663-
* Changes row's array key case to lower.
664-
*
665-
* @param array $row row's array or an array of row's arrays.
666-
* @param bool $multiple whether multiple rows or a single row passed.
667-
*
668-
* @return array normalized row or rows.
669-
*/
670-
protected function normalizeRowKeyCase(array $row, bool $multiple): array
671-
{
672-
if ($multiple) {
673-
return array_map(static fn (array $row) => array_change_key_case($row, CASE_LOWER), $row);
674-
}
675-
676-
return array_change_key_case($row, CASE_LOWER);
677-
}
678661
}

0 commit comments

Comments
 (0)