Skip to content

Commit

Permalink
V2 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Jan 29, 2021
1 parent 4a9dd51 commit 5704910
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher orderByAsc()
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher orderByDesc()
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher dontParseTerm()
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher startWithWildcard()
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher add($query, $columns, string $orderByColumn = 'updated_at')
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher beginWithWildcard(bool $state)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher endWithWildcard(bool $state)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher soundsLike(bool $state)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher add($query, $columns, string $orderByColumn = null)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher addWhen($value, $query, $columns, string $orderByColumn = null)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher addMany($queries)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher paginate($perPage = 15, $pageName = 'page', $page = null)
* @method static \ProtoneMedia\LaravelCrossEloquentSearch\Searcher simplePaginate($perPage = 15, $pageName = 'page', $page = null)
* @method static \Illuminate\Support\Collection parseTerms(string $terms, callable $callback = null)
Expand Down
8 changes: 4 additions & 4 deletions src/Searcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function add($query, $columns = null, string $orderByColumn = null): self
* @param string $orderByColumn
* @return self
*/
public function addWhen($value, $query, $columns = null, string $orderByColumn = 'updated_at'): self
public function addWhen($value, $query, $columns = null, string $orderByColumn = null): self
{
if (!$value) {
return $this;
Expand Down Expand Up @@ -194,7 +194,7 @@ public function orderBy(string $orderByColumn): self
* @param boolean $state
* @return self
*/
public function beginWithWildcard($state = true): self
public function beginWithWildcard(bool $state = true): self
{
$this->beginWithWildcard = $state;

Expand All @@ -207,7 +207,7 @@ public function beginWithWildcard($state = true): self
* @param boolean $state
* @return self
*/
public function endWithWildcard($state = true): self
public function endWithWildcard(bool $state = true): self
{
$this->endWithWildcard = $state;

Expand All @@ -219,7 +219,7 @@ public function endWithWildcard($state = true): self
*
* @return self
*/
public function soundsLike($state = true): self
public function soundsLike(bool $state = true): self
{
$this->soundsLike = $state;

Expand Down

0 comments on commit 5704910

Please sign in to comment.