Skip to content

Commit b966bcb

Browse files
committed
some minor cleanups in query converter
1 parent 1563098 commit b966bcb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/PHPCR/Util/QOM/Sql2ToQomQueryConverter.php

+3-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use DateTime;
66
use Exception;
77
use InvalidArgumentException;
8-
use Jackalope\Query\QOM\Selector;
98
use LogicException;
109
use PHPCR\PropertyType;
1110
use PHPCR\Query\InvalidQueryException;
@@ -21,7 +20,6 @@
2120
use PHPCR\Query\QOM\JoinInterface;
2221
use PHPCR\Query\QOM\NotInterface;
2322
use PHPCR\Query\QOM\OrderingInterface;
24-
use PHPCR\Query\QOM\PropertyExistenceInterface;
2523
use PHPCR\Query\QOM\PropertyValueInterface;
2624
use PHPCR\Query\QOM\QueryObjectModelConstantsInterface as Constants;
2725
use PHPCR\Query\QOM\QueryObjectModelFactoryInterface;
@@ -133,9 +131,7 @@ public function parse($sql2)
133131

134132
$columns = $this->buildColumns($columnData);
135133

136-
$query = $this->factory->createQuery($source, $constraint, $orderings, $columns);
137-
138-
return $query;
134+
return $this->factory->createQuery($source, $constraint, $orderings, $columns);
139135
}
140136

141137
/**
@@ -161,7 +157,7 @@ protected function parseSource()
161157

162158
/**
163159
* 6.7.3. Selector
164-
* Parse an SQL2 selector and return a QOM\Selector.
160+
* Parse an SQL2 selector and return a QOM\SelectorInterface.
165161
*
166162
* @return SelectorInterface
167163
*/
@@ -519,7 +515,7 @@ protected function parseOperator()
519515
/**
520516
* 6.7.18 PropertyExistence.
521517
*
522-
* @return PropertyExistenceInterface
518+
* @return ConstraintInterface
523519
*/
524520
protected function parsePropertyExistence()
525521
{

0 commit comments

Comments
 (0)