Skip to content

Commit

Permalink
Update group-action.md (contributte#1052)
Browse files Browse the repository at this point in the history
change of parameters order in implode
  • Loading branch information
aplitax authored and Josef committed Aug 26, 2024
1 parent 8eb564f commit 78c1315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docs/group-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ And some example handler:
public function groupChangeStatus(array $ids, $status): void
{
$this->flashMessage(
sprintf("Status of items with id: [%s] was changed to: [$status]", implode($ids, ',')),
sprintf("Status of items with id: [%s] was changed to: [$status]", implode(',', $ids)),
'success'
);

Expand Down Expand Up @@ -110,7 +110,7 @@ And the `::addNote()` method:
public function addNote(array $ids, $value): void
{
$this->flashMessage(
sprintf('Note [%s] was added to items with ID: [%s]', $value, implode($ids, ',')),
sprintf('Note [%s] was added to items with ID: [%s]', $value, implode(',', $ids),
'success'
);

Expand Down

0 comments on commit 78c1315

Please sign in to comment.