fix php style

pull/10315/head
thinkerou 8 years ago
parent 9d67ee7222
commit 34d21ceadc
  1. 2
      src/php/lib/Grpc/AbstractCall.php
  2. 2
      src/php/tests/unit_tests/ServerTest.php

@ -131,7 +131,7 @@ abstract class AbstractCall
// Proto3 implementation
if (method_exists($data, 'encode')) {
return $data->encode();
} else if (method_exists($data, 'serializeToString')) {
} elseif (method_exists($data, 'serializeToString')) {
return $data->serializeToString();
}

@ -69,7 +69,7 @@ class ServerTest extends PHPUnit_Framework_TestCase
$this->server = new Grpc\Server();
$port = $this->server->addHttp2Port('0.0.0.0:0');
$this->server->start();
$channel = new Grpc\Channel('localhost:' . $port,
$channel = new Grpc\Channel('localhost:'.$port,
['credentials' => Grpc\ChannelCredentials::createInsecure()]);
$deadline = Grpc\Timeval::infFuture();

Loading…
Cancel
Save