Permalink
Browse files

Fixing code sniffer warnings

  • Loading branch information...
1 parent 53957a3 commit 6fb62f50805ac60eea538d5dc32af2961f7957ad @lstrojny committed Nov 12, 2012
@@ -198,7 +198,6 @@ public function parse($xmlString, &$isFault)
case 'param':
case 'fault':
break 3;
- break;
case 'value':
$nextElements = array(
@@ -35,7 +35,7 @@ class XMLWriterSerializer implements SerializerInterface, ExtensionSupportInterf
{
private $writer;
- private $extension = array();
+ private $extensions = array();
public function __construct()
{
@@ -160,7 +160,6 @@ public function serialize($methodName, array $params = array())
default:
$node = get_object_vars($node);
goto struct;
- break;
}
break;
@@ -26,6 +26,26 @@
class ClientTest extends \PHPUnit_Framework_TestCase
{
+ /**
+ * @var \FXMLRPC\Serializer\SerializerInterface
+ */
+ private $serializer;
+
+ /**
+ * @var \FXMLRPC\Parser\ParserInterface
+ */
+ private $parser;
+
+ /**
+ * @var \FXMLRPC\Transport\TransportInterface
+ */
+ private $transport;
+
+ /**
+ * @var Client
+ */
+ private $client;
+
public function setUp()
{
$this->serializer = $this->getMockBuilder('FXMLRPC\Serializer\SerializerInterface')
@@ -34,7 +34,7 @@ class IntegrationTest extends \PHPUnit_Framework_TestCase
{
private $clients = array();
- private $dependencies = array();
+ private $clientDependencies = array();
private $pos = 0;
@@ -182,22 +182,22 @@ private function generateAllPossibleCombinations($combinations)
if ($combinations) {
for ($i = 0; $i < count($combinations[0]); ++$i) {
$temp = $combinations;
- $this->dependencies[$this->pos] = $combinations[0][$i];
+ $this->clientDependencies[$this->pos] = $combinations[0][$i];
array_shift($temp);
$this->pos++;
$this->generateAllPossibleCombinations($temp);
}
} else {
$client = new FXMLRPC\Client(
'http://localhost:9090/',
- $this->dependencies[0],
- $this->dependencies[1],
- $this->dependencies[2]
+ $this->clientDependencies[0],
+ $this->clientDependencies[1],
+ $this->clientDependencies[2]
);
- if ($this->dependencies[3]) {
- $client = new \FXMLRPC\Timing\TimingDecorator($client, $this->dependencies[3]);
+ if ($this->clientDependencies[3]) {
+ $client = new \FXMLRPC\Timing\TimingDecorator($client, $this->clientDependencies[3]);
}
- $this->clients[] = array($client, $this->dependencies[0], $this->dependencies[1], $this->dependencies[2]);
+ $this->clients[] = array($client, $this->clientDependencies[0], $this->clientDependencies[1], $this->clientDependencies[2]);
}
$this->pos--;
}

0 comments on commit 6fb62f5

Please sign in to comment.