Skip to content

Commit

Permalink
Update group-action.md (#1052)
Browse files Browse the repository at this point in the history
change of parameters order in implode
  • Loading branch information
aplitax authored Dec 7, 2022
1 parent 71a32e5 commit cb48edf
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 cb48edf

Please sign in to comment.