Skip to content

Commit

Permalink
Resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
aginev committed May 9, 2016
2 parents 27fe119 + 81f1dd2 commit 1fb31d3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function hasCustomFilters()
*
* @param $key
* @param Closure $callback
* @param Closure $order_callback
* @param Closure|null $order_callback
* @return $this
*/
public function custom($key, Closure $callback, Closure $order_callback = null)
Expand Down Expand Up @@ -430,15 +430,11 @@ private function setDateBetween($key, $value)
* Get specific key value from the search criteria
*
* @param $key
* @return bool|mixed
* @return null|mixed
*/
private function value($key)
{
if ($this->request->has($key)) {
return $this->request->get($key);
}

return false;
return $this->request->get($key, null);
}

/**
Expand All @@ -455,4 +451,4 @@ private function setConstraint($key, Closure $order = null)
return $this;
}

}
}

0 comments on commit 1fb31d3

Please sign in to comment.