original_string: public function getActivityType()
      {
          $categories = $this->getCategory();
          foreach($categories as $category) {
              if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) {
                  return $category->getTerm();
              }
          }
          return null;
      }
code: public function getActivityType()
      {
          $categories = $this->getCategory();
          foreach($categories as $category) {
              if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) {
                  return $category->getTerm();
              }
          }
          return null;
      }
code_tokens: public function getActivityType ( ) { $ categories = $ this -> getCategory ( ) ; foreach ( $ categories as $ category ) { if ( $ category -> getScheme ( ) == self :: ACTIVITY_CATEGORY_SCHEME ) { return $ category -> getTerm ( ) ; } } return null ; }
docstring: Return the activity type that was performed.
  
  Convenience method that inspects category where scheme is
  http://gdata.youtube.com/schemas/2007/userevents.cat.
  
  @return string|null The activity category if found.
docstring_tokens: Return the activity type that was performed .