Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Nov 16, 2015
1 parent d503ada commit a80fb40
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion spec/SocialShare/SocialShareSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function it_delays_update($cache, $provider)
$numberOfCalls = 0;
$cache->fetch('test_http://dunglas.fr')->will(function () use ($cache, &$numberOfCalls) {
if ($numberOfCalls === 0) {
$numberOfCalls++;
++$numberOfCalls;

return array(2, new \DateTime('-1 day'));
}
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ class Facebook implements ProviderInterface
const API_URL = 'https://graph.facebook.com/?id=%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
return sprintf(self::SHARE_URL, urlencode($url));
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ class Google implements ProviderInterface
const IFRAME_URL = 'https://plusone.google.com/_/+1/fastbutton?url=%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
return sprintf(self::SHARE_URL, urlencode($url));
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down
4 changes: 2 additions & 2 deletions src/SocialShare/Provider/LinkedIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LinkedIn implements ProviderInterface
const API_URL = 'https://www.linkedin.com/countserv/count/share?url=%s&format=json';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
Expand Down Expand Up @@ -52,7 +52,7 @@ public function getLink($url, array $options = array())
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down
8 changes: 4 additions & 4 deletions src/SocialShare/Provider/Pinterest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class Pinterest implements ProviderInterface
const API_URL = 'https://api.pinterest.com/v1/urls/count.json?url=%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
Expand All @@ -41,11 +41,11 @@ public function getLink($url, array $options = array())
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
$data = json_decode(preg_replace('/^receiveCount\((.*)\)$/', "\\1", file_get_contents(sprintf(self::API_URL, urlencode($url)))));
$data = json_decode(preg_replace('/^receiveCount\((.*)\)$/', '\\1', file_get_contents(sprintf(self::API_URL, urlencode($url)))));

return intval($data->count);
}
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/ScoopIt.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ class ScoopIt implements ProviderInterface
const DTD = '<!DOCTYPE html>';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
return sprintf(self::SHARE_URL, urlencode($url));
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/StumbleUpon.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class StumbleUpon implements ProviderInterface
const API_URL = 'https://www.stumbleupon.com/services/1.01/badge.getinfo?url=%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
Expand All @@ -41,7 +41,7 @@ public function getLink($url, array $options = array())
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/Tumblr.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class Tumblr implements ProviderInterface
const SHARE_URL = 'https://www.tumblr.com/share/link?%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
Expand All @@ -42,7 +42,7 @@ public function getLink($url, array $options = array())
}

/**
* {@inheritDoc}
* {@inheritdoc}
*
* @throws UnsupportedOperationException
*/
Expand Down
6 changes: 3 additions & 3 deletions src/SocialShare/Provider/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class Twitter implements ProviderInterface
const API_URL = 'https://cdn.api.twitter.com/1/urls/count.json?url=%s';

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getName()
{
return self::NAME;
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getLink($url, array $options = array())
{
Expand All @@ -41,7 +41,7 @@ public function getLink($url, array $options = array())
}

/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getShares($url)
{
Expand Down

0 comments on commit a80fb40

Please sign in to comment.