diff --git a/src/Client.php b/src/Client.php index 2fa4864..aa4ca70 100644 --- a/src/Client.php +++ b/src/Client.php @@ -21,7 +21,6 @@ class Client public function __construct($server = '', $version = 'v2') { - $server = rtrim($server, '/'); if ($server) { @@ -44,11 +43,11 @@ public function __construct($server = '', $version = 'v2') /** * Set the default root directory. the default is `/` * If the root is others e.g. /linkorb when you set new key, - * or set dir, all of the key is under the root - * e.g. + * or set dir, all of the key is under the root + * e.g. * * $client->setRoot('/linkorb'); - * $client->set('key1, 'value1'); + * $client->set('key1, 'value1'); * // the new key is /linkorb/key1 * * @param string $root @@ -163,7 +162,7 @@ public function get($key, array $flags = null) /** * make a new key with a given value - * + * * @param string $key * @param string $value * @param int $ttl @@ -188,7 +187,7 @@ public function mk($key, $value, $ttl = 0) /** * make a new directory - * + * * @param string $key * @param int $ttl * @return array $body diff --git a/src/Command/EtcdGetCommand.php b/src/Command/EtcdGetCommand.php index 89088e9..9d688dc 100644 --- a/src/Command/EtcdGetCommand.php +++ b/src/Command/EtcdGetCommand.php @@ -10,7 +10,6 @@ class EtcdGetCommand extends Command { - protected function configure() { $this diff --git a/src/Command/EtcdMkCommand.php b/src/Command/EtcdMkCommand.php index f2adac1..ab9d7df 100644 --- a/src/Command/EtcdMkCommand.php +++ b/src/Command/EtcdMkCommand.php @@ -46,8 +46,5 @@ public function execute(InputInterface $input, OutputInterface $output) $json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); echo $json; - - - } } diff --git a/src/Command/EtcdRequestCommand.php b/src/Command/EtcdRequestCommand.php index 96dab53..0e4d3ca 100644 --- a/src/Command/EtcdRequestCommand.php +++ b/src/Command/EtcdRequestCommand.php @@ -10,7 +10,6 @@ class EtcdRequestCommand extends Command { - protected function configure() { $this diff --git a/src/Exception/EtcdException.php b/src/Exception/EtcdException.php index 55b796c..1d4f24a 100644 --- a/src/Exception/EtcdException.php +++ b/src/Exception/EtcdException.php @@ -11,5 +11,4 @@ */ class EtcdException extends Exception { - } diff --git a/src/Exception/KeyExistsException.php b/src/Exception/KeyExistsException.php index 5b4376b..e022aa0 100644 --- a/src/Exception/KeyExistsException.php +++ b/src/Exception/KeyExistsException.php @@ -9,5 +9,4 @@ */ class KeyExistsException extends EtcdException { - } diff --git a/src/Exception/KeyNotFoundException.php b/src/Exception/KeyNotFoundException.php index 2f50eaf..d771d29 100644 --- a/src/Exception/KeyNotFoundException.php +++ b/src/Exception/KeyNotFoundException.php @@ -9,5 +9,4 @@ */ class KeyNotFoundException extends EtcdException { - } diff --git a/tests/LinkORB/Tests/Component/Etcd/ClientTest.php b/tests/LinkORB/Tests/Component/Etcd/ClientTest.php index 6c45507..b94ab0c 100644 --- a/tests/LinkORB/Tests/Component/Etcd/ClientTest.php +++ b/tests/LinkORB/Tests/Component/Etcd/ClientTest.php @@ -7,7 +7,6 @@ class ClientTest extends PHPUnit_Framework_TestCase { - /** * @var Client */ @@ -20,7 +19,6 @@ protected function setUp() $this->client = new Client(); $this->client->mkdir($this->dirname); $this->client->setRoot($this->dirname); - } protected function tearDown()