summaryrefslogtreecommitdiffstats
path: root/vendor/guzzlehttp/promises/src/Is.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/guzzlehttp/promises/src/Is.php
parentprvi-commit (diff)
download1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip
Diffstat (limited to 'vendor/guzzlehttp/promises/src/Is.php')
-rw-r--r--vendor/guzzlehttp/promises/src/Is.php92
1 files changed, 46 insertions, 46 deletions
diff --git a/vendor/guzzlehttp/promises/src/Is.php b/vendor/guzzlehttp/promises/src/Is.php
index c3ed8d0..ab2a0ad 100644
--- a/vendor/guzzlehttp/promises/src/Is.php
+++ b/vendor/guzzlehttp/promises/src/Is.php
@@ -1,46 +1,46 @@
-<?php
-
-namespace GuzzleHttp\Promise;
-
-final class Is
-{
- /**
- * Returns true if a promise is pending.
- *
- * @return bool
- */
- public static function pending(PromiseInterface $promise)
- {
- return $promise->getState() === PromiseInterface::PENDING;
- }
-
- /**
- * Returns true if a promise is fulfilled or rejected.
- *
- * @return bool
- */
- public static function settled(PromiseInterface $promise)
- {
- return $promise->getState() !== PromiseInterface::PENDING;
- }
-
- /**
- * Returns true if a promise is fulfilled.
- *
- * @return bool
- */
- public static function fulfilled(PromiseInterface $promise)
- {
- return $promise->getState() === PromiseInterface::FULFILLED;
- }
-
- /**
- * Returns true if a promise is rejected.
- *
- * @return bool
- */
- public static function rejected(PromiseInterface $promise)
- {
- return $promise->getState() === PromiseInterface::REJECTED;
- }
-}
+<?php
+
+namespace GuzzleHttp\Promise;
+
+final class Is
+{
+ /**
+ * Returns true if a promise is pending.
+ *
+ * @return bool
+ */
+ public static function pending(PromiseInterface $promise)
+ {
+ return $promise->getState() === PromiseInterface::PENDING;
+ }
+
+ /**
+ * Returns true if a promise is fulfilled or rejected.
+ *
+ * @return bool
+ */
+ public static function settled(PromiseInterface $promise)
+ {
+ return $promise->getState() !== PromiseInterface::PENDING;
+ }
+
+ /**
+ * Returns true if a promise is fulfilled.
+ *
+ * @return bool
+ */
+ public static function fulfilled(PromiseInterface $promise)
+ {
+ return $promise->getState() === PromiseInterface::FULFILLED;
+ }
+
+ /**
+ * Returns true if a promise is rejected.
+ *
+ * @return bool
+ */
+ public static function rejected(PromiseInterface $promise)
+ {
+ return $promise->getState() === PromiseInterface::REJECTED;
+ }
+}