File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 1010 */
1111class 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 */
Original file line number Diff line number Diff line change 22
33namespace Embed \Tests ;
44
5- use PHPUnit_Framework_TestCase ;
65use Embed \Embed ;
7- use Embed \ Adapters \ Adapter ;
6+ use PHPUnit_Framework_TestCase ;
87use InvalidArgumentException ;
98
109/**
You can’t perform that action at this time.
0 commit comments