e107inc/e107

View on GitHub
e107_core/shortcodes/batch/user_shortcodes.php

Summary

Maintainability
A
2 hrs
Test Coverage
C
74%

Avoid too many return statements within this method.
Open

                return ($boot) ? $tp->toGlyph('fa-user') : $this->sc_user_realname_icon();
Severity: Major
Found in e107_core/shortcodes/batch/user_shortcodes.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return "";
    Severity: Major
    Found in e107_core/shortcodes/batch/user_shortcodes.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return ($boot) ? $tp->toGlyph('fa-comment') : '';
      Severity: Major
      Found in e107_core/shortcodes/batch/user_shortcodes.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return ($boot) ? $tp->toGlyph('fa-map-marker') : '';
        Severity: Major
        Found in e107_core/shortcodes/batch/user_shortcodes.php - About 30 mins to fix

          Argument 1 (id) is string but \user_class::uc_get_classicon() takes int defined at /code/e107_handlers/userclass_class.php:1065
          Open

                      $icon_path     = e107::getUserClass()->uc_get_classicon($userclass); 

          Variable $embed_already_rendered is undeclared
          Open

                          if(!in_array($hook, $embed_already_rendered)){

          Reference to undeclared constant \USER_BIRTHDAY_ICON
          Open

                      return USER_BIRTHDAY_ICON;

          Variable $pref is undeclared
          Open

                  $key = varset($pref['e_userprofile_list']); 

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  if (USERID == $this->var['user_id'] || (ADMIN && getperms("4")))

          Reference to undeclared constant \USER_REALNAME_ICON
          Open

                      $ret = USER_REALNAME_ICON;

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  if(ADMIN && getperms("4"))

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  if (ADMIN && getperms("4"))

          Argument 4 (width) is null but \comment::compose_comment() takes int defined at /code/e107_handlers/comment_class.php:1056
          Open

                  return e107::getComment()->compose_comment('profile', 'comment', $this->var['user_id'], null, $this->var['user_name'], false,'html');

          Variable $USER_EMBED_USERPROFILE_TEMPLATE is undeclared
          Open

                              $ret .= str_replace($search, $replace, $USER_EMBED_USERPROFILE_TEMPLATE);

          Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
          Open

                                   $extended_record = str_replace("{EXTENDED_NAME}", $tp->toHTML($ue_name,"","defs"), $extended_record);

          Argument 2 (className) is null but \e107::getAddonConfig() takes string defined at /code/e107_handlers/e107_class.php:2962
          Open

                  $data         = e107::getAddonConfig('e_user',null,'profile',$this->var);

          When fetching an array index from a value of type string, found an array index of type 'field', but expected the index to be of type int
          Open

                      $fld = 'user_'.$parm['field'];

          Variable $arr was undeclared, but array fields are being added to it.
          Open

                                  $arr[] = $name();

          Reference to undeclared constant \USER_EMAIL_ICON
          Open

                      return USER_EMAIL_ICON;

          Call to deprecated function \e107_user_extended::user_extended_get_categories() defined at /code/e107_handlers/user_extended_class.php:595
          Open

                  $ueCatList = $ue->user_extended_get_categories();

          Variable $embed_already_rendered was undeclared, but array fields are being added to it.
          Open

                                  $embed_already_rendered[] = $hook;

          Returning type false but sc_user_euf() is declared to return string
          Open

                          return false;

          Reference to undeclared constant \USER_ICON
          Open

                      $icon = USER_ICON;

          Variable $USER_EMBED_USERPROFILE_TEMPLATE is undeclared
          Open

                                  $ret .= str_replace($search, $replace, $USER_EMBED_USERPROFILE_TEMPLATE);

          Returning type false but sc_user_euf() is declared to return string
          Open

                  return false;

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  else if(ADMIN && getperms("4") && !$this->var['user_admin']) 

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  else if(ADMIN && getperms("4") && !$this->var['user_admin'])

          There are no issues that match your filters.

          Category
          Status