| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | declare (strict_types=1); |
| 4 | -namespace Dudlewebs\WPMCS\GuzzleHttp\Promise; | |
| 4 | +namespace Dudlewebs\WPMCS\GCP\GuzzleHttp\Promise; | |
| 5 | 5 | |
| 6 | 6 | final class Is |
| 7 | 7 | { |
| 8 | 8 | /** |
| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | { |
| 8 | 8 | /** |
| 9 | 9 | * Returns true if a promise is pending. |
| 10 | 10 | */ |
| 11 | - public static function pending(PromiseInterface $promise): bool | |
| 11 | + public static function pending(PromiseInterface $promise) : bool | |
| 12 | 12 | { |
| 13 | 13 | return $promise->getState() === PromiseInterface::PENDING; |
| 14 | 14 | } |
| 15 | 15 | /** |
| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | } |
| 15 | 15 | /** |
| 16 | 16 | * Returns true if a promise is fulfilled or rejected. |
| 17 | 17 | */ |
| 18 | - public static function settled(PromiseInterface $promise): bool | |
| 18 | + public static function settled(PromiseInterface $promise) : bool | |
| 19 | 19 | { |
| 20 | 20 | return $promise->getState() !== PromiseInterface::PENDING; |
| 21 | 21 | } |
| 22 | 22 | /** |
| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | } |
| 22 | 22 | /** |
| 23 | 23 | * Returns true if a promise is fulfilled. |
| 24 | 24 | */ |
| 25 | - public static function fulfilled(PromiseInterface $promise): bool | |
| 25 | + public static function fulfilled(PromiseInterface $promise) : bool | |
| 26 | 26 | { |
| 27 | 27 | return $promise->getState() === PromiseInterface::FULFILLED; |
| 28 | 28 | } |
| 29 | 29 | /** |
| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | } |
| 29 | 29 | /** |
| 30 | 30 | * Returns true if a promise is rejected. |
| 31 | 31 | */ |
| 32 | - public static function rejected(PromiseInterface $promise): bool | |
| 32 | + public static function rejected(PromiseInterface $promise) : bool | |
| 33 | 33 | { |
| 34 | 34 | return $promise->getState() === PromiseInterface::REJECTED; |
| 35 | 35 | } |
| 36 | 36 | } |