original_string: protected function removeDuplicateMethodsFromPhpDoc()
      {
          $methodNames = array_map(function (Method $method) {
              return $method->getName();
          }, $this->getMethods());
  
          foreach ($this->phpdoc->getTags() as $tag) {
              if ($tag instanceof MethodTag && in_array($tag->getMethodName(), $methodNames)) {
                  $this->phpdoc->deleteTag($tag);
              }
          }
      }
code: protected function removeDuplicateMethodsFromPhpDoc()
      {
          $methodNames = array_map(function (Method $method) {
              return $method->getName();
          }, $this->getMethods());
  
          foreach ($this->phpdoc->getTags() as $tag) {
              if ($tag instanceof MethodTag && in_array($tag->getMethodName(), $methodNames)) {
                  $this->phpdoc->deleteTag($tag);
              }
          }
      }
code_tokens: protected function removeDuplicateMethodsFromPhpDoc ( ) { $ methodNames = array_map ( function ( Method $ method ) { return $ method -> getName ( ) ; } , $ this -> getMethods ( ) ) ; foreach ( $ this -> phpdoc -> getTags ( ) as $ tag ) { if ( $ tag instanceof MethodTag && in_array ( $ tag -> getMethodName ( ) , $ methodNames ) ) { $ this -> phpdoc -> deleteTag ( $ tag ) ; } } }
docstring: Removes method tags from the doc comment that already appear as functions inside the class.
  This prevents duplicate function errors in the IDE.
  
  @return void
docstring_tokens: Removes method tags from the doc comment that already appear as functions inside the class . This prevents duplicate function errors in the IDE .