PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/GuzzleHttp/Promise/Is.php +5 -12 1.2.12 → 1.4.2 View file →
@@ -1,6 +1,7 @@
1 1 <?php
2 2
3 +declare (strict_types=1);
3 4 namespace Dudlewebs\WPMCS\s3\GuzzleHttp\Promise;
4 5
5 6 final class Is
6 7 {
@@ -5,39 +6,31 @@
5 6 final class Is
6 7 {
7 8 /**
8 9 * Returns true if a promise is pending.
9 - *
10 - * @return bool
11 10 */
12 - public static function pending(PromiseInterface $promise)
11 + public static function pending(PromiseInterface $promise) : bool
13 12 {
14 13 return $promise->getState() === PromiseInterface::PENDING;
15 14 }
16 15 /**
17 16 * Returns true if a promise is fulfilled or rejected.
18 - *
19 - * @return bool
20 17 */
21 - public static function settled(PromiseInterface $promise)
18 + public static function settled(PromiseInterface $promise) : bool
22 19 {
23 20 return $promise->getState() !== PromiseInterface::PENDING;
24 21 }
25 22 /**
26 23 * Returns true if a promise is fulfilled.
27 - *
28 - * @return bool
29 24 */
30 - public static function fulfilled(PromiseInterface $promise)
25 + public static function fulfilled(PromiseInterface $promise) : bool
31 26 {
32 27 return $promise->getState() === PromiseInterface::FULFILLED;
33 28 }
34 29 /**
35 30 * Returns true if a promise is rejected.
36 - *
37 - * @return bool
38 31 */
39 - public static function rejected(PromiseInterface $promise)
32 + public static function rejected(PromiseInterface $promise) : bool
40 33 {
41 34 return $promise->getState() === PromiseInterface::REJECTED;
42 35 }
43 36 }