Update DiscoverActor, fix formatting

This commit is contained in:
Daniel Supernault 2024-09-11 05:43:17 -06:00
parent 002dfefbdd
commit 312386bf98
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -7,6 +7,7 @@ use Zttp\Zttp;
class DiscoverActor class DiscoverActor
{ {
protected $url; protected $url;
protected $response; protected $response;
public function __construct($url) public function __construct($url)
@ -40,7 +41,7 @@ class DiscoverActor
$this->fetch(); $this->fetch();
$res = $this->getResponse(); $res = $this->getResponse();
if (empty($res) || !in_array('type', $res) || $res['type'] !== 'Person') { if (empty($res) || ! in_array('type', $res) || $res['type'] !== 'Person') {
throw new \Exception('Invalid Actor Object'); throw new \Exception('Invalid Actor Object');
} }