original_string: public function destroy($id)
      {
          $modelName = $this->getModelName();
  
          $nodeField = $modelName::findOrFail($id);
          $nodeField->delete();
  
          $this->builderService->destroyField(
              $nodeField->getName(),
              $nodeField->nodeType->getName(),
              $nodeField->nodeType
          );
  
          return $nodeField;
      }
code: public function destroy($id)
      {
          $modelName = $this->getModelName();
  
          $nodeField = $modelName::findOrFail($id);
          $nodeField->delete();
  
          $this->builderService->destroyField(
              $nodeField->getName(),
              $nodeField->nodeType->getName(),
              $nodeField->nodeType
          );
  
          return $nodeField;
      }
code_tokens: public function destroy ( $ id ) { $ modelName = $ this -> getModelName ( ) ; $ nodeField = $ modelName :: findOrFail ( $ id ) ; $ nodeField -> delete ( ) ; $ this -> builderService -> destroyField ( $ nodeField -> getName ( ) , $ nodeField -> nodeType -> getName ( ) , $ nodeField -> nodeType ) ; return $ nodeField ; }
docstring: Destroys a node field
  
  @param int $id
  @return NodeFieldContract
docstring_tokens: Destroys a node field