]> git.mxchange.org Git - friendica.git/commitdiff
spelling: formatter
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Wed, 22 Mar 2023 03:17:51 +0000 (23:17 -0400)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Sun, 26 Mar 2023 20:03:23 +0000 (16:03 -0400)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
src/Model/Item.php
tests/src/Util/ACLFormaterTest.php

index 2410a0441b5d61b77f007ca2b02531912c126c18..81b019e9bb93ebf1bb866b187db8fe174b40d970 100644 (file)
@@ -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);
index 12f81cb7899c8036eb6626f216106a22c3fcc7d7..14aaf09c7233efa0dedee004e86d25eefecb420e 100644 (file)
@@ -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 = [])
        {