Skip to content
Snippets Groups Projects
Commit 34d21cea authored by thinkerou's avatar thinkerou
Browse files

fix php style

parent 9d67ee72
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ abstract class AbstractCall ...@@ -131,7 +131,7 @@ abstract class AbstractCall
// Proto3 implementation // Proto3 implementation
if (method_exists($data, 'encode')) { if (method_exists($data, 'encode')) {
return $data->encode(); return $data->encode();
} else if (method_exists($data, 'serializeToString')) { } elseif (method_exists($data, 'serializeToString')) {
return $data->serializeToString(); return $data->serializeToString();
} }
......
...@@ -69,7 +69,7 @@ class ServerTest extends PHPUnit_Framework_TestCase ...@@ -69,7 +69,7 @@ class ServerTest extends PHPUnit_Framework_TestCase
$this->server = new Grpc\Server(); $this->server = new Grpc\Server();
$port = $this->server->addHttp2Port('0.0.0.0:0'); $port = $this->server->addHttp2Port('0.0.0.0:0');
$this->server->start(); $this->server->start();
$channel = new Grpc\Channel('localhost:' . $port, $channel = new Grpc\Channel('localhost:'.$port,
['credentials' => Grpc\ChannelCredentials::createInsecure()]); ['credentials' => Grpc\ChannelCredentials::createInsecure()]);
$deadline = Grpc\Timeval::infFuture(); $deadline = Grpc\Timeval::infFuture();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment