original_string: public function set($rules, $formName = null)
      {
          if (isset($rules)) {
              // set form name in order to get related validation rules
              $this->currentFormName = $formName;
  
              $this->validationRules[$formName] = (array)$rules;
          }
      }
code: public function set($rules, $formName = null)
      {
          if (isset($rules)) {
              // set form name in order to get related validation rules
              $this->currentFormName = $formName;
  
              $this->validationRules[$formName] = (array)$rules;
          }
      }
code_tokens: public function set ( $ rules , $ formName = null ) { if ( isset ( $ rules ) ) { // set form name in order to get related validation rules $ this -> currentFormName = $ formName ; $ this -> validationRules [ $ formName ] = ( array ) $ rules ; } }
docstring: Set rules for validation.
  
  @param array $rules Laravel validation rules
  @param string $formName
docstring_tokens: Set rules for validation .