22
33namespace ApiClients \Client \Travis ;
44
5- use ApiClients \Client \Travis \CommandBus \Command ;
65use React \Promise \CancellablePromiseInterface ;
76use React \Promise \PromiseInterface ;
87use Rx \Observable ;
98use Rx \ObservableInterface ;
10- use function ApiClients \Tools \Rx \unwrapObservableFromPromise ;
119use function React \Promise \resolve ;
1210
1311interface AsyncClientInterface
@@ -16,29 +14,29 @@ interface AsyncClientInterface
1614 * Fetch the given repository.
1715 * This will resolve a Resource\Async\Repository object.
1816 *
19- * @param string $repository
17+ * @param string $repository
2018 * @return CancellablePromiseInterface
2119 */
2220 public function repository (string $ repository ): CancellablePromiseInterface ;
2321
2422 /**
2523 * Fetch all the repositories linked to the authenticated user's account.
2624 * This will return a stream of Resource\Async\Repository objects.
27- * (Requires auth token to be passed to the client!)
25+ * (Requires auth token to be passed to the client!).
2826 *
2927 * This function accepts an optional callable passed into a filter call
3028 * on the hooks observable before it fetches the repository information.
3129 * It could be used to only fetch new repositories.
3230 *
33- * @param callable|null $filter
31+ * @param callable|null $filter
3432 * @return ObservableInterface
3533 */
3634 public function repositories (callable $ filter = null ): ObservableInterface ;
3735
3836 /**
3937 * Fetch information about the current authenticated user.
4038 * This will resolve a Resource\Async\User object.
41- * (Requires auth token to be passed to the client!)
39+ * (Requires auth token to be passed to the client!).
4240 *
4341 * @return PromiseInterface
4442 */
@@ -48,9 +46,9 @@ public function user(): PromiseInterface;
4846 * Fetch the SSH key for the given repository ID.
4947 * This will resolve a Resource\Async\SSHKey object.
5048 * (Requires auth token to be passed to the client!)
51- * (Only available on Travis Pro: https://travis-ci.com/)
49+ * (Only available on Travis Pro: https://travis-ci.com/).
5250 *
53- * @param int $id
51+ * @param int $id
5452 * @return PromiseInterface
5553 */
5654 public function sshKey (int $ id ): PromiseInterface ;
@@ -60,7 +58,7 @@ public function sshKey(int $id): PromiseInterface;
6058 * Hooks represent whether a repository is active or not,
6159 * their ID's match that of the repository they represent.
6260 * This will return a stream of Resource\Async\Hook objects.
63- * (Requires auth token to be passed to the client!)
61+ * (Requires auth token to be passed to the client!).
6462 *
6563 * @return ObservableInterface
6664 */
@@ -69,7 +67,7 @@ public function hooks(): ObservableInterface;
6967 /**
7068 * Fetch a stream of which users and orgs the currently authenticated user has access to.
7169 * This will return a stream of Resource\Async\Account objects.
72- * (Requires auth token to be passed to the client!)
70+ * (Requires auth token to be passed to the client!).
7371 *
7472 * @return ObservableInterface
7573 */
@@ -78,7 +76,7 @@ public function accounts(): ObservableInterface;
7876 /**
7977 * Fetch a list of currently active broadcast. Used by the Travis team to spread news on the site.
8078 * This will return a stream of Resource\Async\Broadcast objects.
81- * (Requires auth token to be passed to the client!)
79+ * (Requires auth token to be passed to the client!).
8280 *
8381 * @return ObservableInterface
8482 */
0 commit comments