original_string: public function get_criteria_badge_class() {
          $badge = new badge($this->_data->id);
          $narrative = $badge->markdown_badge_criteria();
          if (!empty($narrative)) {
              $criteria = array();
              $criteria['id'] = $this->_url->out(false);
              $criteria['narrative'] = $narrative;
              return $criteria;
          } else {
              return $this->_url->out(false);
          }
      }
code: public function get_criteria_badge_class() {
          $badge = new badge($this->_data->id);
          $narrative = $badge->markdown_badge_criteria();
          if (!empty($narrative)) {
              $criteria = array();
              $criteria['id'] = $this->_url->out(false);
              $criteria['narrative'] = $narrative;
              return $criteria;
          } else {
              return $this->_url->out(false);
          }
      }
code_tokens: public function get_criteria_badge_class ( ) { $ badge = new badge ( $ this -> _data -> id ) ; $ narrative = $ badge -> markdown_badge_criteria ( ) ; if ( ! empty ( $ narrative ) ) { $ criteria = array ( ) ; $ criteria [ 'id' ] = $ this -> _url -> out ( false ) ; $ criteria [ 'narrative' ] = $ narrative ; return $ criteria ; } else { return $ this -> _url -> out ( false ) ; } }
docstring: Get criteria of badge class.
  
  @return array|string Criteria information.
docstring_tokens: Get criteria of badge class .