Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../vendor/guzzleht.../promises/src
File: Is.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace GuzzleHttp\Promise;
[2] Fix | Delete
[3] Fix | Delete
final class Is
[4] Fix | Delete
{
[5] Fix | Delete
/**
[6] Fix | Delete
* Returns true if a promise is pending.
[7] Fix | Delete
*
[8] Fix | Delete
* @return bool
[9] Fix | Delete
*/
[10] Fix | Delete
public static function pending(PromiseInterface $promise)
[11] Fix | Delete
{
[12] Fix | Delete
return $promise->getState() === PromiseInterface::PENDING;
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Returns true if a promise is fulfilled or rejected.
[17] Fix | Delete
*
[18] Fix | Delete
* @return bool
[19] Fix | Delete
*/
[20] Fix | Delete
public static function settled(PromiseInterface $promise)
[21] Fix | Delete
{
[22] Fix | Delete
return $promise->getState() !== PromiseInterface::PENDING;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* Returns true if a promise is fulfilled.
[27] Fix | Delete
*
[28] Fix | Delete
* @return bool
[29] Fix | Delete
*/
[30] Fix | Delete
public static function fulfilled(PromiseInterface $promise)
[31] Fix | Delete
{
[32] Fix | Delete
return $promise->getState() === PromiseInterface::FULFILLED;
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Returns true if a promise is rejected.
[37] Fix | Delete
*
[38] Fix | Delete
* @return bool
[39] Fix | Delete
*/
[40] Fix | Delete
public static function rejected(PromiseInterface $promise)
[41] Fix | Delete
{
[42] Fix | Delete
return $promise->getState() === PromiseInterface::REJECTED;
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function