Skip to content

Commit 0943caa

Browse files
authored
Merge pull request #33 from creative-commoners/pulls/2.2/php-7.4-compat
FIX Replace deprecated implode parameter order
2 parents 319464c + 6eba8ab commit 0943caa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code/AuditHook.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ public static function handle_manipulation($manipulation)
121121
if ($table === $schema->tableName(Group::class)) {
122122
$extendedText = sprintf(
123123
'Effective permissions: %s',
124-
implode($data->Permissions()->column('Code'), ', ')
124+
implode(', ', $data->Permissions()->column('Code'))
125125
);
126126
}
127127
if ($table === $schema->tableName(PermissionRole::class)) {
128128
$extendedText = sprintf(
129129
'Effective groups: %s, Effective permissions: %s',
130-
implode($data->Groups()->column('Title'), ', '),
131-
implode($data->Codes()->column('Code'), ', ')
130+
implode(', ', $data->Groups()->column('Title')),
131+
implode(', ', $data->Codes()->column('Code'))
132132
);
133133
}
134134
if ($table === $schema->tableName(PermissionRoleCode::class)) {
@@ -140,7 +140,7 @@ public static function handle_manipulation($manipulation)
140140
if ($table === $schema->tableName(Member::class)) {
141141
$extendedText = sprintf(
142142
'Effective groups: %s',
143-
implode($data->Groups()->column('Title'), ', ')
143+
implode(', ', $data->Groups()->column('Title'))
144144
);
145145
}
146146

0 commit comments

Comments
 (0)