original_string: public function rename_category(category_controller $category, string $name) {
          $this->validate_category($category);
          $category->set('name', $name);
          api::save_category($category);
          $this->clear_configuration_cache();
      }
code: public function rename_category(category_controller $category, string $name) {
          $this->validate_category($category);
          $category->set('name', $name);
          api::save_category($category);
          $this->clear_configuration_cache();
      }
code_tokens: public function rename_category ( category_controller $ category , string $ name ) { $ this -> validate_category ( $ category ) ; $ category -> set ( 'name' , $ name ) ; api :: save_category ( $ category ) ; $ this -> clear_configuration_cache ( ) ; }
docstring: Change name for a field category
  
  @param category_controller $category
  @param string $name
docstring_tokens: Change name for a field category