From: Michael Wallner Date: Thu, 12 May 2016 19:58:36 +0000 (+0200) Subject: fix some typos/ws X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cb67a45f0e94c91583d7563f7a21d89845332c13;p=m6w6%2Fseekat fix some typos/ws --- 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)) { diff --git a/lib/API/Deferred.php b/lib/API/Deferred.php index b55cb9d..4384684 100644 --- a/lib/API/Deferred.php +++ b/lib/API/Deferred.php @@ -7,8 +7,8 @@ use http\Client; use http\Client\Request; use http\Client\Response; -class Deferred extends \React\Promise\Deferred implements \SplObserver { - +class Deferred extends \React\Promise\Deferred implements \SplObserver +{ /** * The endpoint * @var \seekat\API diff --git a/lib/API/Iterator.php b/lib/API/Iterator.php index 8f57b09..f0179b4 100644 --- a/lib/API/Iterator.php +++ b/lib/API/Iterator.php @@ -4,7 +4,8 @@ namespace seekat\API; use seekat\API; -class Iterator implements \Iterator { +class Iterator implements \Iterator +{ /** * The endpoint * @var \seekat\API