]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/GContact.php
Move Authentication::setAuthenticatedSessionForUser to Session::setAuthenticatedForUser
[friendica.git] / src / Model / GContact.php
index 57259651c7916adb1e615605b19fafdacf086718..43375b9afb6692bc82d32f01ef837123aca701e1 100644 (file)
@@ -242,6 +242,7 @@ class GContact
         * @param integer $uid id
         * @param integer $cid id
         * @return integer
+        * @throws Exception
         */
        public static function countCommonFriends($uid, $cid)
        {
@@ -269,6 +270,7 @@ class GContact
         * @param integer $uid  id
         * @param integer $zcid zcid
         * @return integer
+        * @throws Exception
         */
        public static function countCommonFriendsZcid($uid, $zcid)
        {
@@ -295,6 +297,7 @@ class GContact
         * @param integer $limit   optional, default 9999
         * @param boolean $shuffle optional, default false
         * @return object
+        * @throws Exception
         */
        public static function commonFriends($uid, $cid, $start = 0, $limit = 9999, $shuffle = false)
        {
@@ -333,6 +336,7 @@ class GContact
         * @param integer $limit   optional, default 9999
         * @param boolean $shuffle optional, default false
         * @return object
+        * @throws Exception
         */
        public static function commonFriendsZcid($uid, $zcid, $start = 0, $limit = 9999, $shuffle = false)
        {
@@ -362,6 +366,7 @@ class GContact
         * @param integer $uid user
         * @param integer $cid cid
         * @return integer
+        * @throws Exception
         */
        public static function countAllFriends($uid, $cid)
        {
@@ -387,6 +392,7 @@ class GContact
         * @param integer $start optional, default 0
         * @param integer $limit optional, default 80
         * @return array
+        * @throws Exception
         */
        public static function allFriends($uid, $cid, $start = 0, $limit = 80)
        {
@@ -522,8 +528,6 @@ class GContact
         */
        public static function updateSuggestions()
        {
-               $a = \get_app();
-
                $done = [];
 
                /// @TODO Check if it is really neccessary to poll the own server
@@ -1053,6 +1057,7 @@ class GContact
 
        /**
         * @return string
+        * @throws Exception
         */
        public static function getRandomUrl()
        {