original_string: public static function friendsList()
      {
          if (Podium::getInstance()->user->isGuest) {
              return null;
          }
          $logged = static::loggedId();
          $cache = Podium::getInstance()->podiumCache->getElement('user.friends', $logged);
          if ($cache === false) {
              $cache = [];
              $friends = static::findMe()->friends;
              if ($friends) {
                  /* @var $friend User */
                  foreach ($friends as $friend) {
                      $cache[$friend->id] = $friend->getPodiumTag(true);
                  }
              }
              Podium::getInstance()->podiumCache->setElement('user.friends', $logged, $cache);
          }
          return $cache;
      }
code: public static function friendsList()
      {
          if (Podium::getInstance()->user->isGuest) {
              return null;
          }
          $logged = static::loggedId();
          $cache = Podium::getInstance()->podiumCache->getElement('user.friends', $logged);
          if ($cache === false) {
              $cache = [];
              $friends = static::findMe()->friends;
              if ($friends) {
                  /* @var $friend User */
                  foreach ($friends as $friend) {
                      $cache[$friend->id] = $friend->getPodiumTag(true);
                  }
              }
              Podium::getInstance()->podiumCache->setElement('user.friends', $logged, $cache);
          }
          return $cache;
      }
code_tokens: public static function friendsList ( ) { if ( Podium :: getInstance ( ) -> user -> isGuest ) { return null ; } $ logged = static :: loggedId ( ) ; $ cache = Podium :: getInstance ( ) -> podiumCache -> getElement ( 'user.friends' , $ logged ) ; if ( $ cache === false ) { $ cache = [ ] ; $ friends = static :: findMe ( ) -> friends ; if ( $ friends ) { /* @var $friend User */ foreach ( $ friends as $ friend ) { $ cache [ $ friend -> id ] = $ friend -> getPodiumTag ( true ) ; } } Podium :: getInstance ( ) -> podiumCache -> setElement ( 'user.friends' , $ logged , $ cache ) ; } return $ cache ; }
docstring: Returns list of friends for dropdown.
  @return array
  @since 0.2
docstring_tokens: Returns list of friends for dropdown .