Skip to content

Commit 0aa306e

Browse files
committed
php 5.x support
1 parent 9f6d4c4 commit 0aa306e

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

src/Adapters/Adapter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ abstract class Adapter implements DataInterface
5151
*
5252
* @return bool
5353
*/
54-
abstract public static function check(Response $response);
54+
public static function check(Response $response)
55+
{
56+
return $response->isValid();
57+
}
5558

5659
/**
5760
* Constructor.

src/Adapters/Webpage.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
*/
1111
class Webpage extends Adapter
1212
{
13-
/**
14-
* {@inheritdoc}
15-
*/
16-
public static function check(Response $response)
17-
{
18-
return $response->isValid();
19-
}
20-
2113
/**
2214
* {@inheritdoc}
2315
*/

tests/AbstractTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
namespace Embed\Tests;
44

5-
use PHPUnit_Framework_TestCase;
65
use Embed\Embed;
7-
use Embed\Adapters\Adapter;
6+
use PHPUnit_Framework_TestCase;
87
use InvalidArgumentException;
98

109
/**

0 commit comments

Comments
 (0)