From 2502519e481b9dd96607b76958d20d57feb727f9 Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 31 Oct 2023 13:05:03 +0900 Subject: [PATCH] refactor: make method names shorter --- system/Helpers/Array/ArrayHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Helpers/Array/ArrayHelper.php b/system/Helpers/Array/ArrayHelper.php index e4be38293683..ab6755d03daf 100644 --- a/system/Helpers/Array/ArrayHelper.php +++ b/system/Helpers/Array/ArrayHelper.php @@ -22,7 +22,7 @@ final class ArrayHelper * * @return array|bool|int|object|string|null */ - public static function dotArraySearch(string $index, array $array) + public static function dotSearch(string $index, array $array) { // See https://regex101.com/r/44Ipql/1 $segments = preg_split( @@ -107,7 +107,7 @@ private static function arraySearchDot(array $indexes, array $array) * * @return array Result array where rows are grouped together by indexes values. */ - public static function arrayGroupBy(array $array, array $indexes, bool $includeEmpty = false): array + public static function groupBy(array $array, array $indexes, bool $includeEmpty = false): array { if ($indexes === []) { return $array;