src/Provider/GoogleSearch.php
public function getApiRequestUrl(Event $event)
    {
        $params = $event->getCustomParams();
        $query = trim(implode(" ", $params));

        $querystringParams = [
            'v' => '1.0',
            'q' => $query
        ];

        return sprintf("%s?%s", $this->apiUrl, http_build_query($querystringParams));
    }
public function getApiRequestUrl(Event $event)
    {
        $params = $event->getCustomParams();
        $query = trim(implode(" ", $params));

        $querystringParams = [
            'v' => '1.0',
            'q' => $query
        ];

        return sprintf("%s?%s", $this->apiUrl, http_build_query($querystringParams));
    }
public function getApiRequestUrl ( Event $ event ) { $ params = $ event -> getCustomParams ( ) ; $ query = trim ( implode ( " " , $ params ) ) ; $ querystringParams = [ 'v' => '1.0' , 'q' => $ query ] ; return sprintf ( "%s?%s" , $ this -> apiUrl , http_build_query ( $ querystringParams ) ) ; }
Get the url for the API request

@param \Phergie\Irc\Plugin\React\Command\CommandEvent $event
@return string
Get the url for the API request