public function normalizeParams(RequestHandler $handler, $params)
    {
        if (is_string($params)) {
            $params = array('q' => $params);
        } elseif (!is_array($params)) {
            $params = (array) $params;
        }
        return array_merge($handler->getDefaultParams(), $params);
    }
public function normalizeParams(RequestHandler $handler, $params)
    {
        if (is_string($params)) {
            $params = array('q' => $params);
        } elseif (!is_array($params)) {
            $params = (array) $params;
        }
        return array_merge($handler->getDefaultParams(), $params);
    }
public function normalizeParams ( RequestHandler $ handler , $ params ) { if ( is_string ( $ params ) ) { $ params = array ( 'q' => $ params ) ; } elseif ( ! is_array ( $ params ) ) { $ params = ( array ) $ params ; } return array_merge ( $ handler -> getDefaultParams ( ) , $ params ) ; }
Normalizes and merges default params.

@param \PSolr\Client\RequestHandler $handler
@param mixed $params

@return array
Normalizes and merges default params .