@@ -22,60 +22,60 @@ interface PromiseAdapterInterface
2222 *
2323 * @return mixed a Promise
2424 */
25- public function create (&$ resolve = null , &$ reject = null , callable $ canceller = null );
25+ public function create (&$ resolve = null , &$ reject = null , callable $ canceller = null );
2626
27- /**
28- * Creates a full filed Promise for a value if the value is not a promise.
29- *
30- * @param mixed $promiseOrValue
31- *
32- * @return mixed a full filed Promise
33- */
34- public function createFulfilled ($ promiseOrValue = null );
27+ /**
28+ * Creates a full filed Promise for a value if the value is not a promise.
29+ *
30+ * @param mixed $promiseOrValue
31+ *
32+ * @return mixed a full filed Promise
33+ */
34+ public function createFulfilled ($ promiseOrValue = null );
3535
36- /**
37- * Creates a rejected promise for a reason if the reason is not a promise. If
38- * the provided reason is a promise, then it is returned as-is.
39- *
40- * @param mixed $reason
41- *
42- * @return mixed a rejected promise
43- */
44- public function createRejected ($ reason );
36+ /**
37+ * Creates a rejected promise for a reason if the reason is not a promise. If
38+ * the provided reason is a promise, then it is returned as-is.
39+ *
40+ * @param mixed $reason
41+ *
42+ * @return mixed a rejected promise
43+ */
44+ public function createRejected ($ reason );
4545
46- /**
47- * Given an array of promises, return a promise that is fulfilled when all the
48- * items in the array are fulfilled.
49- *
50- * @param mixed $promisesOrValues Promises or values.
51- *
52- * @return mixed a Promise
53- */
54- public function createAll ($ promisesOrValues );
46+ /**
47+ * Given an array of promises, return a promise that is fulfilled when all the
48+ * items in the array are fulfilled.
49+ *
50+ * @param mixed $promisesOrValues Promises or values.
51+ *
52+ * @return mixed a Promise
53+ */
54+ public function createAll ($ promisesOrValues );
5555
56- /**
57- * Check if value is a promise
58- *
59- * @param mixed $value
60- * @param bool $strict
61- *
62- * @return bool
63- */
64- public function isPromise ($ value , $ strict = false );
56+ /**
57+ * Check if value is a promise
58+ *
59+ * @param mixed $value
60+ * @param bool $strict
61+ *
62+ * @return bool
63+ */
64+ public function isPromise ($ value , $ strict = false );
6565
66- /**
67- * Cancel a promise
68- *
69- * @param $promise
70- */
71- public function cancel ($ promise );
66+ /**
67+ * Cancel a promise
68+ *
69+ * @param $promise
70+ */
71+ public function cancel ($ promise );
7272
73- /**
74- * wait for Promise to complete
75- * @param mixed $promise
76- * @param bool $unwrap
77- *
78- * @return mixed
79- */
80- public function await ($ promise = null , $ unwrap = false );
73+ /**
74+ * wait for Promise to complete
75+ * @param mixed $promise
76+ * @param bool $unwrap
77+ *
78+ * @return mixed
79+ */
80+ public function await ($ promise = null , $ unwrap = false );
8181}
0 commit comments