Refactored equals, added documentation
This commit is contained in:
parent
172bc4866a
commit
0cbb927066
2 changed files with 36 additions and 2 deletions
|
@ -66,14 +66,13 @@
|
|||
* @param Engine $engine
|
||||
* @return bool
|
||||
* @throws EvaluationException
|
||||
* @throws EvaluationException
|
||||
*/
|
||||
public function eval(Engine $engine): bool
|
||||
{
|
||||
$a = $engine->eval($this->A);
|
||||
$b = $engine->eval($this->B);
|
||||
|
||||
return $a === $b;
|
||||
return ($a === $b);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue