original_string: public static function get_status_list($userid) {
          $status = array();
          if (self::can_manage_user_draft($userid)) {
              $status[self::STATUS_DRAFT] = get_string('planstatusdraft', 'core_competency');
          }
          if (self::can_manage_user($userid)) {
              $status[self::STATUS_ACTIVE] = get_string('planstatusactive', 'core_competency');
          }
          return $status;
      }
code: public static function get_status_list($userid) {
          $status = array();
          if (self::can_manage_user_draft($userid)) {
              $status[self::STATUS_DRAFT] = get_string('planstatusdraft', 'core_competency');
          }
          if (self::can_manage_user($userid)) {
              $status[self::STATUS_ACTIVE] = get_string('planstatusactive', 'core_competency');
          }
          return $status;
      }
code_tokens: public static function get_status_list ( $ userid ) { $ status = array ( ) ; if ( self :: can_manage_user_draft ( $ userid ) ) { $ status [ self :: STATUS_DRAFT ] = get_string ( 'planstatusdraft' , 'core_competency' ) ; } if ( self :: can_manage_user ( $ userid ) ) { $ status [ self :: STATUS_ACTIVE ] = get_string ( 'planstatusactive' , 'core_competency' ) ; } return $ status ; }
docstring: Return a list of status depending on capabilities.
  
  @param  int $userid The user to whom the plan would belong.
  @return array
docstring_tokens: Return a list of status depending on capabilities .