Skip to content

Commit

Permalink
BUGFIX: Remove duplicate comparison methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet committed Feb 14, 2017
1 parent d5f7414 commit d71d55f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 57 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Service/SqLiteIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function query($query) {
if ($result === false) {
return $resultArray;
}

while ($resultRow = $result->fetchArray(SQLITE3_ASSOC)) {
$resultArray[] = $resultRow;
}
Expand Down
56 changes: 0 additions & 56 deletions Classes/Search/SqLiteQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,62 +327,6 @@ public function likeAnyMatch($propertyName, $propertyValues) {
return $this;
}

/**
* Add a range filter (gt) for the given property
*
* @param string $propertyName Name of the property
* @param mixed $value Value for comparison
* @return QueryBuilder
* @api
*/
public function greaterThan($propertyName, $value) {
$this->where[] = sprintf(" (`%s`) > %s", $propertyName, $value);

return $this;
}

/**
* Add a range filter (lt) for the given property
*
* @param string $propertyName Name of the property
* @param mixed $value Value for comparison
* @return QueryBuilder
* @api
*/
public function lessThan($propertyName, $value) {
$this->where[] = sprintf(" (`%s`) < %s", $propertyName, $value);

return $this;
}

/**
* Add a range filter (gte) for the given property
*
* @param string $propertyName Name of the property
* @param mixed $value Value for comparison
* @return QueryBuilder
* @api
*/
public function greaterThanOrEqual($propertyName, $value) {
$this->where[] = sprintf(" (`%s`) >= %s", $propertyName, $value);

return $this;
}

/**
* Add a range filter (lte) for the given property
*
* @param string $propertyName Name of the property
* @param mixed $value Value for comparison
* @return QueryBuilder
* @api
*/
public function lessThanOrEqual($propertyName, $value) {
$this->where[] = sprintf(" (`%s`) <= %s", $propertyName, $value);

return $this;
}

/**
* @return string
*/
Expand Down

0 comments on commit d71d55f

Please sign in to comment.