original_string: public function prepare()
      {
          // The date format method to use with Carbon to convert the dates
          $dateFormatMethod = 'to' . strtolower($this->format) . 'String';
  
          if (null !== $this->pubDate) {
              $this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
          }
  
          if (null !== $this->updated) {
              $this->updated = Carbon::parse($this->updated)->{$dateFormatMethod}();
          }
  
          $this->title = strip_tags($this->title);
  
          $this->autoFill();
      }
code: public function prepare()
      {
          // The date format method to use with Carbon to convert the dates
          $dateFormatMethod = 'to' . strtolower($this->format) . 'String';
  
          if (null !== $this->pubDate) {
              $this->pubDate = Carbon::parse($this->pubDate)->{$dateFormatMethod}();
          }
  
          if (null !== $this->updated) {
              $this->updated = Carbon::parse($this->updated)->{$dateFormatMethod}();
          }
  
          $this->title = strip_tags($this->title);
  
          $this->autoFill();
      }
code_tokens: public function prepare ( ) { // The date format method to use with Carbon to convert the dates $ dateFormatMethod = 'to' . strtolower ( $ this -> format ) . 'String' ; if ( null !== $ this -> pubDate ) { $ this -> pubDate = Carbon :: parse ( $ this -> pubDate ) -> { $ dateFormatMethod } ( ) ; } if ( null !== $ this -> updated ) { $ this -> updated = Carbon :: parse ( $ this -> updated ) -> { $ dateFormatMethod } ( ) ; } $ this -> title = strip_tags ( $ this -> title ) ; $ this -> autoFill ( ) ; }
docstring: Validate, auto-fill and sanitize the entry
  
  @return void
docstring_tokens: Validate auto - fill and sanitize the entry