original_string: protected function onBeforeDelete() {
          parent::onBeforeDelete();
          
          //Remove all Snippets from this folder
          DB::query('UPDATE "Snippet" SET "FolderID"='.$this->ParentID.' WHERE "FolderID"='.$this->ID);
          
          //Remove all Snippet Folders from this folder
          DB::query('UPDATE "SnippetFolder" SET "ParentID"='.$this->ParentID.' WHERE "ParentID"='.$this->ID);
      }
code: protected function onBeforeDelete() {
          parent::onBeforeDelete();
          
          //Remove all Snippets from this folder
          DB::query('UPDATE "Snippet" SET "FolderID"='.$this->ParentID.' WHERE "FolderID"='.$this->ID);
          
          //Remove all Snippet Folders from this folder
          DB::query('UPDATE "SnippetFolder" SET "ParentID"='.$this->ParentID.' WHERE "ParentID"='.$this->ID);
      }
code_tokens: protected function onBeforeDelete ( ) { parent :: onBeforeDelete ( ) ; //Remove all Snippets from this folder DB :: query ( 'UPDATE "Snippet" SET "FolderID"=' . $ this -> ParentID . ' WHERE "FolderID"=' . $ this -> ID ) ; //Remove all Snippet Folders from this folder DB :: query ( 'UPDATE "SnippetFolder" SET "ParentID"=' . $ this -> ParentID . ' WHERE "ParentID"=' . $ this -> ID ) ; }
docstring: Removes all snippets from the folder before deleting
docstring_tokens: Removes all snippets from the folder before deleting