src/Mremi/UrlShortener/Provider/Sina/SinaProvider.php
public function shorten(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->get('shorten.json', array_merge(
            array(
                'query' => array(
                    'source'   => $this->apiKey,
                    'url_long' => $link->getLongUrl(),
                ),
            ),
            $this->options
        ));

        $response = $this->validate($response->getBody()->getContents());

        $link->setShortUrl($response->urls[0]->url_short);
    }
public function shorten(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->get('shorten.json', array_merge(
            array(
                'query' => array(
                    'source'   => $this->apiKey,
                    'url_long' => $link->getLongUrl(),
                ),
            ),
            $this->options
        ));

        $response = $this->validate($response->getBody()->getContents());

        $link->setShortUrl($response->urls[0]->url_short);
    }
{@inheritdoc}