fix some typos/ws
authorMichael Wallner <mike@php.net>
Thu, 12 May 2016 19:58:36 +0000 (21:58 +0200)
committerMichael Wallner <mike@php.net>
Thu, 12 May 2016 19:58:36 +0000 (21:58 +0200)
lib/API.php
lib/API/Deferred.php
lib/API/Iterator.php

index 390771ee943f3a456d1975f907bdf1afbc2f4194..c3877ec28061185405fcdc3a383f7fd291d79a0f 100644 (file)
@@ -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
         * 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") {
         */
        function __get($seg) : API {
                if (substr($seg, -4) === "_url") {
@@ -139,7 +139,7 @@ class API implements \IteratorAggregate, \Countable {
                        return $this->$method->get(...$args);
                }
                
                        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)) {
                                
                return $this->$method->get(...$args)->otherwise(function($error) use($method, $args) {
                        if ($this->exists($method."_url", $url)) {
                                
index b55cb9dcc1f5a9832070219ceb74f19179d5fa42..438468464bdf832cd6725c65fb8d46f9034ca810 100644 (file)
@@ -7,8 +7,8 @@ use http\Client;
 use http\Client\Request;
 use http\Client\Response;
 
 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
        /**
         * The endpoint
         * @var \seekat\API
index 8f57b099a1a849948169603d48184eaa900730e0..f0179b48087b2718e5a67426ae8aad915119128c 100644 (file)
@@ -4,7 +4,8 @@ namespace seekat\API;
 
 use seekat\API;
 
 
 use seekat\API;
 
-class Iterator implements \Iterator {
+class Iterator implements \Iterator
+{
        /**
         * The endpoint
         * @var \seekat\API
        /**
         * The endpoint
         * @var \seekat\API