From 044bc8ddace6a76a865d0e9c8be8c0a5acc3a281 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 21 Mar 2023 23:17:51 -0400 Subject: [PATCH] spelling: formatter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/Model/Item.php | 10 +++++----- tests/src/Util/ACLFormaterTest.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 2410a0441b..81b019e9bb 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2501,12 +2501,12 @@ class Item */ public static function enumeratePermissions(array $obj, bool $check_dead = false): array { - $aclFormater = DI::aclFormatter(); + $aclFormatter = DI::aclFormatter(); - $allow_people = $aclFormater->expand($obj['allow_cid']); - $allow_groups = Group::expand($obj['uid'], $aclFormater->expand($obj['allow_gid']), $check_dead); - $deny_people = $aclFormater->expand($obj['deny_cid']); - $deny_groups = Group::expand($obj['uid'], $aclFormater->expand($obj['deny_gid']), $check_dead); + $allow_people = $aclFormatter->expand($obj['allow_cid']); + $allow_groups = Group::expand($obj['uid'], $aclFormatter->expand($obj['allow_gid']), $check_dead); + $deny_people = $aclFormatter->expand($obj['deny_cid']); + $deny_groups = Group::expand($obj['uid'], $aclFormatter->expand($obj['deny_gid']), $check_dead); $recipients = array_unique(array_merge($allow_people, $allow_groups)); $deny = array_unique(array_merge($deny_people, $deny_groups)); $recipients = array_diff($recipients, $deny); diff --git a/tests/src/Util/ACLFormaterTest.php b/tests/src/Util/ACLFormaterTest.php index 12f81cb789..14aaf09c72 100644 --- a/tests/src/Util/ACLFormaterTest.php +++ b/tests/src/Util/ACLFormaterTest.php @@ -26,9 +26,9 @@ use Friendica\Util\ACLFormatter; use PHPUnit\Framework\TestCase; /** - * ACLFormater utility testing class + * ACLFormatter utility testing class */ -class ACLFormaterTest extends TestCase +class ACLFormatterTest extends TestCase { public function assertAcl($text, array $assert = []) { -- 2.39.5