Skip to content

Commit

Permalink
phpcs.
Browse files Browse the repository at this point in the history
  • Loading branch information
congpeijun committed Feb 11, 2015
1 parent 2713349 commit 521ff1a
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 16 deletions.
11 changes: 5 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Client

public function __construct($server = '', $version = 'v2')
{

$server = rtrim($server, '/');

if ($server) {
Expand All @@ -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.
* <code>
* $client->setRoot('/linkorb');
* $client->set('key1, 'value1');
* $client->set('key1, 'value1');
* // the new key is /linkorb/key1
* </code>
* @param string $root
Expand Down Expand Up @@ -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
Expand All @@ -188,7 +187,7 @@ public function mk($key, $value, $ttl = 0)

/**
* make a new directory
*
*
* @param string $key
* @param int $ttl
* @return array $body
Expand Down
1 change: 0 additions & 1 deletion src/Command/EtcdGetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

class EtcdGetCommand extends Command
{

protected function configure()
{
$this
Expand Down
3 changes: 0 additions & 3 deletions src/Command/EtcdMkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,5 @@ public function execute(InputInterface $input, OutputInterface $output)

$json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
echo $json;



}
}
1 change: 0 additions & 1 deletion src/Command/EtcdRequestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

class EtcdRequestCommand extends Command
{

protected function configure()
{
$this
Expand Down
1 change: 0 additions & 1 deletion src/Exception/EtcdException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
*/
class EtcdException extends Exception
{

}
1 change: 0 additions & 1 deletion src/Exception/KeyExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
*/
class KeyExistsException extends EtcdException
{

}
1 change: 0 additions & 1 deletion src/Exception/KeyNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
*/
class KeyNotFoundException extends EtcdException
{

}
2 changes: 0 additions & 2 deletions tests/LinkORB/Tests/Component/Etcd/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class ClientTest extends PHPUnit_Framework_TestCase
{

/**
* @var Client
*/
Expand All @@ -20,7 +19,6 @@ protected function setUp()
$this->client = new Client();
$this->client->mkdir($this->dirname);
$this->client->setRoot($this->dirname);

}

protected function tearDown()
Expand Down

0 comments on commit 521ff1a

Please sign in to comment.