X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2FAPI.php;fp=lib%2FAPI.php;h=c3877ec28061185405fcdc3a383f7fd291d79a0f;hb=cb67a45f0e94c91583d7563f7a21d89845332c13;hp=390771ee943f3a456d1975f907bdf1afbc2f4194;hpb=8ef054b51c681e7822133b38f7c5ed9dd2a0f29c;p=m6w6%2Fseekat diff --git a/lib/API.php b/lib/API.php index 390771e..c3877ec 100644 --- a/lib/API.php +++ b/lib/API.php @@ -84,7 +84,7 @@ class API implements \IteratorAggregate, \Countable { * Ascend one level deep into the API endpoint * * @var string|int $seg The "path" element to ascend into - * @return \seekat\API Endpoint clone referring to {$parent}/{$seg} + * @return \seekat\API Endpoint clone referring to {$parent}/{$seg} */ function __get($seg) : API { if (substr($seg, -4) === "_url") { @@ -139,7 +139,7 @@ class API implements \IteratorAggregate, \Countable { return $this->$method->get(...$args); } - /* fetch resource, unless already localized, and try for {$method}_url */ + /* fetch resource, unless already localized, and try for {$method}_url */ return $this->$method->get(...$args)->otherwise(function($error) use($method, $args) { if ($this->exists($method."_url", $url)) {