1
0
Fork 0

Made fixes after review.

pull/246/head
Leszek Prabucki 2012-01-23 09:21:36 +01:00
parent 3f38eede8a
commit f59ca1e2f8
2 changed files with 3 additions and 5 deletions

View File

@ -87,7 +87,7 @@ class Rule
}
for ($i = 0, $n = count($this->literals); $i < $n; $i++) {
if (!($this->literals[$i]->getId() === $rule->literals[$i]->getId())) {
if ($this->literals[$i]->getId() !== $rule->literals[$i]->getId()) {
return false;
}
}

View File

@ -39,8 +39,7 @@ class ResultSetIteratorTest extends \PHPUnit_Framework_TestCase
$ruleSetIterator = new RuleSetIterator($this->rules);
$result = array();
foreach ($ruleSetIterator as $rule)
{
foreach ($ruleSetIterator as $rule) {
$result[] = $rule;
}
@ -58,8 +57,7 @@ class ResultSetIteratorTest extends \PHPUnit_Framework_TestCase
$ruleSetIterator = new RuleSetIterator($this->rules);
$result = array();
foreach ($ruleSetIterator as $key => $rule)
{
foreach ($ruleSetIterator as $key => $rule) {
$result[] = $key;
}