original_string: protected function explodeRules($rules)
      {
          foreach ($rules as $key => $rule) {
              if (Str::contains($key, '*')) {
                  $rules = $this->explodeWildcardRules($rules, $key, [$rule]);
  
                  unset($rules[$key]);
              } else {
                  $rules[$key] = $this->explodeExplicitRule($rule);
              }
          }
  
          return $rules;
      }
code: protected function explodeRules($rules)
      {
          foreach ($rules as $key => $rule) {
              if (Str::contains($key, '*')) {
                  $rules = $this->explodeWildcardRules($rules, $key, [$rule]);
  
                  unset($rules[$key]);
              } else {
                  $rules[$key] = $this->explodeExplicitRule($rule);
              }
          }
  
          return $rules;
      }
code_tokens: protected function explodeRules ( $ rules ) { foreach ( $ rules as $ key => $ rule ) { if ( Str :: contains ( $ key , '*' ) ) { $ rules = $ this -> explodeWildcardRules ( $ rules , $ key , [ $ rule ] ) ; unset ( $ rules [ $ key ] ) ; } else { $ rules [ $ key ] = $ this -> explodeExplicitRule ( $ rule ) ; } } return $ rules ; }
docstring: Explode the rules into an array of explicit rules.
  
  @param  array  $rules
  @return array
docstring_tokens: Explode the rules into an array of explicit rules .