1
0
mirror of synced 2025-03-22 07:53:49 +03:00

Processed code-review feedback

This commit is contained in:
Menno Holtkamp 2014-03-20 09:02:39 +01:00
parent 56e879b7aa
commit 262e465e39

View File

@ -651,11 +651,11 @@ class Expr
* @param string $x Value to be checked * @param string $x Value to be checked
* @param string $y Value to be checked against * @param string $y Value to be checked against
* *
* @return string * @return Expr\Comparison
*/ */
public function isMemberOf($x, $y) public function isMemberOf($x, $y)
{ {
return $x . ' MEMBER OF ' . $y; return new Expr\Comparison($x, 'MEMBER OF', $y);
} }
/** /**
@ -663,11 +663,11 @@ class Expr
* *
* @param string $x Value to be checked * @param string $x Value to be checked
* @param string $y Value to be checked against * @param string $y Value to be checked against
*
* @return string * @return Expr\Comparison
*/ */
public function isInstanceOf($x, $y) public function isInstanceOf($x, $y)
{ {
return $x . ' INSTANCE OF ' . $y; return new Expr\Comparison($x, 'INSTANCE OF', $y);
} }
} }