]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Fix removing falsy text nodes in HTML::tagToBBCodeSub
[friendica.git] / src / Content / Widget.php
index 9295818113e14c736e1e15b9507ddf5125de5639..f1f62c33fc9141ca98e96989394088115ce25767 100644 (file)
@@ -268,7 +268,7 @@ class Widget
 
                $r = DBA::select('contact', ['network'], $condition, ['group_by' => ['network'], 'order' => ['network']]);
 
-               $nets = array();
+               $nets = [];
                while ($rr = DBA::fetch($r)) {
                        $nets[] = ['ref' => $rr['network'], 'name' => ContactSelector::networkToName($rr['network'])];
                }
@@ -334,7 +334,7 @@ class Widget
                        return '';
                }
 
-               $terms = array();
+               $terms = [];
                foreach (Post\Category::getArray($uid, Post\Category::CATEGORY) as $savedFolderName) {
                        $terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
                }
@@ -512,10 +512,10 @@ class Widget
         * The account type value is added as a parameter to the url
         *
         * @param string $base        Basepath
-        * @param int    $accounttype Acount type
+        * @param string $accounttype Account type
         * @return string
         */
-       public static function accounttypes(string $base, int $accounttype): string
+       public static function accountTypes(string $base, string $accounttype): string
        {
                $accounts = [
                        ['ref' => 'person', 'name' => DI::l10n()->t('Persons')],