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

        $response = $client->post('/admin/query', array_merge(
            array(
                'json' => array(
                    'shortUrl' => $link->getShortUrl(),
                ),
            ),
            $this->options
        ));

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

        $link->setLongUrl($response->LongUrl);
    }
public function expand(LinkInterface $link)
    {
        $client = $this->createClient();

        $response = $client->post('/admin/query', array_merge(
            array(
                'json' => array(
                    'shortUrl' => $link->getShortUrl(),
                ),
            ),
            $this->options
        ));

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

        $link->setLongUrl($response->LongUrl);
    }
{@inheritdoc}