]> git.mxchange.org Git - friendica.git/blobdiff - mod/allfriends.php
Use short form array syntax everywhere
[friendica.git] / mod / allfriends.php
index 86f3f27e280529267c6fb4cce88c3f482efc76ee..0d8be35cd36414574db2bc8cd2c4e7a07939ee78 100644 (file)
@@ -69,13 +69,13 @@ function allfriends_content(App $a)
                        $photo_menu = Contact::photoMenu($rr);
                } else {
                        $connlnk = System::baseUrl() . '/follow/?url=' . $rr['url'];
-                       $photo_menu = array(
-                               'profile' => array(t("View Profile"), Profile::zrl($rr['url'])),
-                               'follow' => array(t("Connect/Follow"), $connlnk)
-                       );
+                       $photo_menu = [
+                               'profile' => [t("View Profile"), Profile::zrl($rr['url'])],
+                               'follow' => [t("Connect/Follow"), $connlnk]
+                       ];
                }
 
-               $entry = array(
+               $entry = [
                        'url'          => $rr['url'],
                        'itemurl'      => defaults($contact_details, 'addr', $rr['url']),
                        'name'         => htmlentities($contact_details['name']),
@@ -90,7 +90,7 @@ function allfriends_content(App $a)
                        'conntxt'      => t('Connect'),
                        'connlnk'      => $connlnk,
                        'id'           => ++$id,
-               );
+               ];
                $entries[] = $entry;
        }
 
@@ -98,12 +98,12 @@ function allfriends_content(App $a)
 
        $tpl = get_markup_template('viewcontact_template.tpl');
 
-       $o .= replace_macros($tpl, array(
+       $o .= replace_macros($tpl, [
                //'$title' => sprintf( t('Friends of %s'), htmlentities($c[0]['name'])),
                '$tab_str' => $tab_str,
                '$contacts' => $entries,
                '$paginate' => paginate($a),
-       ));
+       ]);
 
        return $o;
 }