Skip to content

Commit

Permalink
boyscouting
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Aug 27, 2024
1 parent 8639e03 commit d0b235a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function group(Component $component, string|array|null $groups = null): Property
$groups = (array) $groups;

$result = empty($groups)
? all_grouped_properties($component)
: all_named_grouped_properties($component, $groups);
? all_groups($component)
: named_groups($component, $groups);

return PropertyCollection::make($component, $result);
}

function all_grouped_properties(Component $component): array
function all_groups(Component $component): array
{
$result = [];
$reflection = new ReflectionClass($component);
Expand All @@ -32,7 +32,7 @@ function all_grouped_properties(Component $component): array
return $result;
}

function all_named_grouped_properties(Component $component, array $groups): array
function named_groups(Component $component, array $groups): array
{
$result = [];
$reflection = new ReflectionClass($component);
Expand Down

0 comments on commit d0b235a

Please sign in to comment.