aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar thinkerou <thinkerou@gmail.com>2017-03-26 01:07:27 +0800
committerGravatar thinkerou <thinkerou@gmail.com>2017-03-26 01:10:21 +0800
commit34d21ceadcc7e83f15f3bdcfa6955940c6e4d30a (patch)
treeb11deaba9bc99fbbe727c755538c1e765fd17678 /src
parent9d67ee7222a3df65ba949d810667fdd1d7bdfc73 (diff)
fix php style
Diffstat (limited to 'src')
-rw-r--r--src/php/lib/Grpc/AbstractCall.php2
-rw-r--r--src/php/tests/unit_tests/ServerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/php/lib/Grpc/AbstractCall.php b/src/php/lib/Grpc/AbstractCall.php
index 4833fdc7b6..a59bfa3ba3 100644
--- a/src/php/lib/Grpc/AbstractCall.php
+++ b/src/php/lib/Grpc/AbstractCall.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();
}
diff --git a/src/php/tests/unit_tests/ServerTest.php b/src/php/tests/unit_tests/ServerTest.php
index 5f40202f18..3e7c01f20e 100644
--- a/src/php/tests/unit_tests/ServerTest.php
+++ b/src/php/tests/unit_tests/ServerTest.php
@@ -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();