Skip to content

Commit

Permalink
refactor: make method names shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 31, 2023
1 parent 775ded8 commit 2502519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Helpers/Array/ArrayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2502519

Please sign in to comment.