mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Format code
This commit is contained in:
parent
6a16f19f82
commit
1c180c3a5b
@ -118,7 +118,6 @@ class Connection extends BaseConnection implements ConnectionInterface, DbConnec
|
||||
$this->rollBack(0);
|
||||
$this->logger->error('Maybe you\'ve forgotten to commit or rollback the MySQL transaction.');
|
||||
}
|
||||
|
||||
} catch (Throwable $exception) {
|
||||
$this->logger->error('Rollback connection failed, caused by ' . $exception);
|
||||
// Ensure that the connection must be reset the next time after broken.
|
||||
|
@ -85,7 +85,7 @@ class Client extends Server
|
||||
|
||||
return $this->packer->unpack((string) $response->getBody());
|
||||
}
|
||||
|
||||
|
||||
public function patch(string $uri, array $data = [], array $headers = [])
|
||||
{
|
||||
$response = $this->request('PATCH', $uri, [
|
||||
|
@ -58,7 +58,7 @@ class HttpClient
|
||||
|
||||
return $this->packer->unpack((string) $response->getBody());
|
||||
}
|
||||
|
||||
|
||||
public function put(string|UriInterface $uri, array $data = [], array $headers = [])
|
||||
{
|
||||
$response = $this->client->put($uri, [
|
||||
@ -68,7 +68,7 @@ class HttpClient
|
||||
|
||||
return $this->packer->unpack((string) $response->getBody());
|
||||
}
|
||||
|
||||
|
||||
public function patch(string|UriInterface $uri, array $data = [], array $headers = [])
|
||||
{
|
||||
$response = $this->client->patch($uri, [
|
||||
|
Loading…
Reference in New Issue
Block a user