original_string: protected function generateSlugAndSave()
      {
          if ($this->slugWorkingRecord->{$this->slugDbField}) {
              return;
          }
  
          $this->generateSlug();
  
          if ($this->slugWorkingRecord->{$this->slugDbField}) {
              $this->slugWorkingRecord->write();
          }
      }
code: protected function generateSlugAndSave()
      {
          if ($this->slugWorkingRecord->{$this->slugDbField}) {
              return;
          }
  
          $this->generateSlug();
  
          if ($this->slugWorkingRecord->{$this->slugDbField}) {
              $this->slugWorkingRecord->write();
          }
      }
code_tokens: protected function generateSlugAndSave ( ) { if ( $ this -> slugWorkingRecord -> { $ this -> slugDbField } ) { return ; } $ this -> generateSlug ( ) ; if ( $ this -> slugWorkingRecord -> { $ this -> slugDbField } ) { $ this -> slugWorkingRecord -> write ( ) ; } }
docstring: Generate hash and save if slug created
docstring_tokens: Generate hash and save if slug created