original_string: protected function parseValidationRule($rule)
      {
          $ruleArray = array();
  
          $explodedRule = explode(':', $rule, 2);
          $ruleArray['name'] = array_shift($explodedRule);
  
          if (empty($explodedRule) || !in_array(strtolower($ruleArray['name']), static::$multiParamRules)) {
              $ruleArray['parameters'] = $explodedRule;
          } else {
              $ruleArray['parameters'] = str_getcsv($explodedRule[0]);
          }
  
          return $ruleArray;
      }
code: protected function parseValidationRule($rule)
      {
          $ruleArray = array();
  
          $explodedRule = explode(':', $rule, 2);
          $ruleArray['name'] = array_shift($explodedRule);
  
          if (empty($explodedRule) || !in_array(strtolower($ruleArray['name']), static::$multiParamRules)) {
              $ruleArray['parameters'] = $explodedRule;
          } else {
              $ruleArray['parameters'] = str_getcsv($explodedRule[0]);
          }
  
          return $ruleArray;
      }
code_tokens: protected function parseValidationRule ( $ rule ) { $ ruleArray = array ( ) ; $ explodedRule = explode ( ':' , $ rule , 2 ) ; $ ruleArray [ 'name' ] = array_shift ( $ explodedRule ) ; if ( empty ( $ explodedRule ) || ! in_array ( strtolower ( $ ruleArray [ 'name' ] ) , static :: $ multiParamRules ) ) { $ ruleArray [ 'parameters' ] = $ explodedRule ; } else { $ ruleArray [ 'parameters' ] = str_getcsv ( $ explodedRule [ 0 ] ) ; } return $ ruleArray ; }
docstring: Parses validation rule of laravel.
  
  @param string
  @return array
docstring_tokens: Parses validation rule of laravel .