original_string: public function transformInto($id)
      {
          $newType = NodeType::find($id);
  
          if (is_null($newType))
          {
              throw new \RuntimeException('Node type does not exist');
          }
  
          $sourceAttributes = $this->parseSourceAttributes();
  
          $this->flushSources();
  
          $this->transformNodeType($newType);
  
          $this->remakeSources($newType);
  
          $this->fill($sourceAttributes);
  
          $this->save();
      }
code: public function transformInto($id)
      {
          $newType = NodeType::find($id);
  
          if (is_null($newType))
          {
              throw new \RuntimeException('Node type does not exist');
          }
  
          $sourceAttributes = $this->parseSourceAttributes();
  
          $this->flushSources();
  
          $this->transformNodeType($newType);
  
          $this->remakeSources($newType);
  
          $this->fill($sourceAttributes);
  
          $this->save();
      }
code_tokens: public function transformInto ( $ id ) { $ newType = NodeType :: find ( $ id ) ; if ( is_null ( $ newType ) ) { throw new \ RuntimeException ( 'Node type does not exist' ) ; } $ sourceAttributes = $ this -> parseSourceAttributes ( ) ; $ this -> flushSources ( ) ; $ this -> transformNodeType ( $ newType ) ; $ this -> remakeSources ( $ newType ) ; $ this -> fill ( $ sourceAttributes ) ; $ this -> save ( ) ; }
docstring: Transforms the node type with to given type
  
  @param int $id
  @throws \RuntimeException
docstring_tokens: Transforms the node type with to given type