Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Sep 19, 2024
1 parent 206bff9 commit 9d69096
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GapicClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private function startApiCall(
Message $request = null,
array $optionalArgs = []
) {
$methodDescriptors =$this->validateCallConfig($methodName);
$methodDescriptors = $this->validateCallConfig($methodName);
$callType = $methodDescriptors['callType'];

// Prepare request-based headers, merge with user-provided headers,
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/MockClientStreamingCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function wait()
public function write($request, array $options = [])
{
if ($this->waitCalled) {
throw new ApiException('Cannot call write() after wait()', Code::INTERNAL, ApiStatus::INTERNAL);
throw new ApiException('Cannot call write() after wait()', Code::INTERNAL, ApiStatus::INTERNAL);
}
if (is_a($request, '\Google\Protobuf\Internal\Message')) {
/** @var Message $newRequest */
Expand Down
2 changes: 1 addition & 1 deletion src/Transport/GrpcFallbackTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function unpackResponse(Call $call, ResponseInterface $response)
$decodeType = $call->getDecodeType();
/** @var Message $responseMessage */
$responseMessage = new $decodeType();
$responseMessage->mergeFromString((string)$response->getBody());
$responseMessage->mergeFromString((string) $response->getBody());
return $responseMessage;
}

Expand Down
1 change: 0 additions & 1 deletion src/Transport/GrpcTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use Google\ApiCore\GrpcSupportTrait;
use Google\ApiCore\ServerStream;
use Google\ApiCore\ServiceAddressTrait;
use Google\ApiCore\Transport\Grpc\GrpcClient;
use Google\ApiCore\Transport\Grpc\ServerStreamingCallWrapper;
use Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface;
use Google\ApiCore\ValidationException;
Expand Down
4 changes: 2 additions & 2 deletions src/Transport/Rest/JsonStreamDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private function _decode()
if ($b === '}' && !$str) {
$level--;
if ($level === 1) {
$end = $cursor+1;
$end = $cursor + 1;
}
}
// Track the closing of an array if not in a string value.
Expand Down Expand Up @@ -195,7 +195,7 @@ private function _decode()

// Dump the part of the chunk used for parsing the message
// and use the remaining for the next message.
$remaining = $chunkLength-$length;
$remaining = $chunkLength - $length;
$chunk = substr($chunk, $end, $remaining);

// Reset all indices and exit chunk processing.
Expand Down

0 comments on commit 9d69096

Please sign in to comment.