Skip to content

Commit 7562ac0

Browse files
committed
Fixed some issues as pointed out by Scrutinizer.
1 parent 5248bba commit 7562ac0

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
![Travis Build Badge](https://travis-ci.org/Swader/diffbot-php-client.svg?branch=master)
2+
13
# Diffbot PHP API Wrapper
24

35
This package is a slightly overengineered Diffbot API wrapper. It uses Guzzle to make API calls. To learn more about Diffbot see [here](http://www.sitepoint.com/tag/diffbot/) and [their homepage](http://diffbot.com).

src/Entity/EntityIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Swader\Diffbot\Entity;
44

5-
use GuzzleHttp\Message\Response;
5+
use GuzzleHttp\Message\ResponseInterface as Response;
66
use Swader\Diffbot\Abstracts\Entity;
77

88
class EntityIterator implements \Countable, \Iterator

src/Factory/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Swader\Diffbot\Factory;
44

5-
use GuzzleHttp\Message\Response;
5+
use GuzzleHttp\Message\ResponseInterface as Response;
66
use Swader\Diffbot\Entity\EntityIterator;
77
use Swader\Diffbot\Exceptions\DiffbotException;
88
use Swader\Diffbot\Interfaces\EntityFactory;

src/Interfaces/EntityFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
namespace Swader\Diffbot\Interfaces;
44

5-
use GuzzleHttp\Message\Response;
6-
use Swader\Diffbot\Abstracts\Entity;
5+
use GuzzleHttp\Message\ResponseInterface as Response;
6+
use Swader\Diffbot\Entity\EntityIterator;
77

88
interface EntityFactory
99
{
1010
/**
1111
* Returns the entity iterator containing the appropriate entities as built by the contents of $response
1212
*
1313
* @param Response $response
14-
* @return Entity
14+
* @return EntityIterator
1515
*/
1616
public function createAppropriateIterator(Response $response);
1717
}

src/Traits/StandardApi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
trait StandardApi {
1111

12-
1312
/**
1413
* Makes the API call return the links field, common to all standard API types
1514
* @param $bool

0 commit comments

Comments
 (0)