original_string: public function create($id, array $attributes)
      {
          $typeModelName = $this->getTypeModelName();
  
          $nodeType = $typeModelName::findOrFail($id);
  
          $nodeField = $nodeType->addField($attributes);
  
          $this->builderService->buildField(
              $nodeField->getName(),
              $nodeField->getType(),
              $nodeField->isIndexed(),
              $nodeType->getName(),
              $nodeType
          );
  
          return $nodeField;
      }
code: public function create($id, array $attributes)
      {
          $typeModelName = $this->getTypeModelName();
  
          $nodeType = $typeModelName::findOrFail($id);
  
          $nodeField = $nodeType->addField($attributes);
  
          $this->builderService->buildField(
              $nodeField->getName(),
              $nodeField->getType(),
              $nodeField->isIndexed(),
              $nodeType->getName(),
              $nodeType
          );
  
          return $nodeField;
      }
code_tokens: public function create ( $ id , array $ attributes ) { $ typeModelName = $ this -> getTypeModelName ( ) ; $ nodeType = $ typeModelName :: findOrFail ( $ id ) ; $ nodeField = $ nodeType -> addField ( $ attributes ) ; $ this -> builderService -> buildField ( $ nodeField -> getName ( ) , $ nodeField -> getType ( ) , $ nodeField -> isIndexed ( ) , $ nodeType -> getName ( ) , $ nodeType ) ; return $ nodeField ; }
docstring: Creates a node field
  
  @param int $id
  @param array $attributes
  @return NodeFieldContract
docstring_tokens: Creates a node field