]> git.mxchange.org Git - friendica.git/commitdiff
Review Updates
authorAdam Magness <adam.magness@gmail.com>
Wed, 10 Jan 2018 12:14:45 +0000 (07:14 -0500)
committerAdam Magness <adam.magness@gmail.com>
Wed, 10 Jan 2018 12:14:45 +0000 (07:14 -0500)
Remove unused function. Add function headers.

src/Content/ContactSelector.php

index bd8bcc989beefa14c74f1abb02dcc361e19d0d2e..eac7debce773f8e8f0400ee05800f2ce38548a1c 100644 (file)
@@ -38,28 +38,11 @@ class ContactSelector
                return $o;
        }
 
-       private static function contact_reputation($current)
-       {
-               $o = '';
-               $o .= "<select id=\"contact-reputation-selector\" name=\"reputation\" />\r\n";
-
-               $rep = array(
-                       0 => t('Unknown | Not categorised'),
-                       1 => t('Block immediately'),
-                       2 => t('Shady, spammer, self-marketer'),
-                       3 => t('Known to me, but no opinion'),
-                       4 => t('OK, probably harmless'),
-                       5 => t('Reputable, has my trust')
-               );
-
-               foreach ($rep as $k => $v) {
-                       $selected = (($k == $current) ? " selected=\"selected\" " : "");
-                       $o .= "<option value=\"$k\" $selected >$v</option>\r\n";
-               }
-               $o .= "</select>\r\n";
-               return $o;
-       }
-
+       /**
+        * @param string  $current  current
+        * @param boolean $disabled optional, default false
+        * @return object
+        */
        public static function pollInterval($current, $disabled = false)
        {
                $dis = (($disabled) ? ' disabled="disabled" ' : '');
@@ -83,6 +66,11 @@ class ContactSelector
                return $o;
        }
 
+       /**
+        * @param string $s       network
+        * @param string $profile optional, default empty
+        * @return string
+        */
        public static function networkToName($s, $profile = "")
        {
                $nets = array(