projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
PHP8
[m6w6/seekat]
/
lib
/
API
/
Call.php
diff --git
a/lib/API/Call.php
b/lib/API/Call.php
index 8b0f62fd726d67ca30f4c6dcbacfc57469d55d41..38b1559f6172b2bffe7d28586c44e0c8d09ecc96 100644
(file)
--- a/
lib/API/Call.php
+++ b/
lib/API/Call.php
@@
-5,8
+5,7
@@
namespace seekat\API;
use http\Url;
use seekat\API;
use http\Url;
use seekat\API;
-final class Call
-{
+final class Call {
/**
* @var API
*/
/**
* @var API
*/
@@
-24,7
+23,7
@@
final class Call
function __invoke(array $args) {
if ($this->api->exists($this->call."_url", $url)) {
function __invoke(array $args) {
if ($this->api->exists($this->call."_url", $url)) {
- $url = new Url(uri_template($url, (array)current($args)));
+ $url = new Url(uri_template($url, (array)
current($args)));
$promise = $this->api->withUrl($url)->get(...$args);
} else {
$promise = $this->api->{$this->call}->get(...$args);
$promise = $this->api->withUrl($url)->get(...$args);
} else {
$promise = $this->api->{$this->call}->get(...$args);