original_string: public function addRules($rules)
      {
          // The primary purpose of this parser is to expand any "*" rules to the all
          // of the explicit rules needed for the given data. For example the rule
          // names.* would get expanded to names.0, names.1, etc. for this data.
          $response = (new ValidationRuleParser($this->data))
                              ->explode($rules);
  
          $this->rules = array_merge_recursive(
              $this->rules, $response->rules
          );
  
          $this->implicitAttributes = array_merge(
              $this->implicitAttributes, $response->implicitAttributes
          );
      }
code: public function addRules($rules)
      {
          // The primary purpose of this parser is to expand any "*" rules to the all
          // of the explicit rules needed for the given data. For example the rule
          // names.* would get expanded to names.0, names.1, etc. for this data.
          $response = (new ValidationRuleParser($this->data))
                              ->explode($rules);
  
          $this->rules = array_merge_recursive(
              $this->rules, $response->rules
          );
  
          $this->implicitAttributes = array_merge(
              $this->implicitAttributes, $response->implicitAttributes
          );
      }
code_tokens: public function addRules ( $ rules ) { // The primary purpose of this parser is to expand any "*" rules to the all // of the explicit rules needed for the given data. For example the rule // names.* would get expanded to names.0, names.1, etc. for this data. $ response = ( new ValidationRuleParser ( $ this -> data ) ) -> explode ( $ rules ) ; $ this -> rules = array_merge_recursive ( $ this -> rules , $ response -> rules ) ; $ this -> implicitAttributes = array_merge ( $ this -> implicitAttributes , $ response -> implicitAttributes ) ; }
docstring: Parse the given rules and merge them into current rules.
  
  @param  array  $rules
  @return void
docstring_tokens: Parse the given rules and merge them into current rules .