More code styling changes.

This commit is contained in:
Daniele Alessandri
2012-07-27 12:23:25 +02:00
parent 6c732c737b
commit 55a3fd65a2
75 changed files with 260 additions and 232 deletions
@@ -45,8 +45,7 @@ class ProcessorChain implements CommandProcessorChainInterface, \ArrayAccess
*/
public function remove(CommandProcessorInterface $processor)
{
$index = array_search($processor, $this->processors, true);
if ($index !== false) {
if (false !== $index = array_search($processor, $this->processors, true)) {
unset($this[$index]);
}
}
@@ -56,8 +55,7 @@ class ProcessorChain implements CommandProcessorChainInterface, \ArrayAccess
*/
public function process(CommandInterface $command)
{
$count = count($this->processors);
for ($i = 0; $i < $count; $i++) {
for ($i = 0; $i < $count = count($this->processors); $i++) {
$this->processors[$i]->process($command);
}
}