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

        $response = $client->get('expand.json', array_merge(
            array(
                'query' => array(
                    'source'    => $this->apiKey,
                    'url_short' => $link->getShortUrl(),
                ),
            ),
            $this->options
        ));

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

        $link->setLongUrl($response->urls[0]->url_long);
    }
public function expand(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->get('expand.json', array_merge(
            array(
                'query' => array(
                    'source'    => $this->apiKey,
                    'url_short' => $link->getShortUrl(),
                ),
            ),
            $this->options
        ));

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

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