original_string: public function decorate(array $rules, Model $model = null)
      {
          $this->rules = $rules;
          $this->model = $model;
  
          $this
              ->replaceTranslationPlaceholders()
              ->replaceKeyPlaceholders();
  
          return $this->rules;
      }
code: public function decorate(array $rules, Model $model = null)
      {
          $this->rules = $rules;
          $this->model = $model;
  
          $this
              ->replaceTranslationPlaceholders()
              ->replaceKeyPlaceholders();
  
          return $this->rules;
      }
code_tokens: public function decorate ( array $ rules , Model $ model = null ) { $ this -> rules = $ rules ; $ this -> model = $ model ; $ this -> replaceTranslationPlaceholders ( ) -> replaceKeyPlaceholders ( ) ; return $ this -> rules ; }
docstring: Decorates given validation rules
  
  @param array      $rules
  @param Model|null $model     if updating, the model being updated
  @return array
docstring_tokens: Decorates given validation rules