Skip to content

Commit

Permalink
Merge pull request #10 from akki-io/analysis-wjYKjN
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
akki-io authored Mar 1, 2022
2 parents 0a2e10c + 1ae9a0b commit 666608c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/LaravelNovaSearchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ protected static function applyRelationSearch($query, $search)
/**
* Returns a Closure that applies a search query for a given columns.
*
* @param array $columns
* @param string $search
* @param array $columns
* @param string $search
* @return Closure
*/
protected static function searchRelationQueryApplier(array $columns, string $search)
Expand Down Expand Up @@ -196,8 +196,8 @@ protected static function applyRelationConcatenationColumnsSearch($query, $searc
/**
* Returns a Closure that applies a search query for a given concatenated columns.
*
* @param array $columns
* @param string $search
* @param array $columns
* @param string $search
* @return Closure
*/
protected static function searchRelationConcatenationQueryApplier(array $columns, string $search)
Expand Down Expand Up @@ -240,8 +240,8 @@ protected static function applyRelationMatchingAnyColumnsSearch($query, $search)
/**
* Returns a Closure that applies a matching any search query for a given columns.
*
* @param array $columns
* @param string $search
* @param array $columns
* @param string $search
* @return Closure
*/
protected static function searchRelationMatchingAnyQueryApplier(array $columns, string $search)
Expand All @@ -262,7 +262,7 @@ protected static function searchRelationMatchingAnyQueryApplier(array $columns,
/**
* Resolve the query operator.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \Illuminate\Database\Eloquent\Builder $query
* @return string
*/
protected static function likeOperator($query)
Expand Down Expand Up @@ -293,6 +293,6 @@ protected static function concatCondition($query, $columns)
}

// Replace double empty spaces created by an empty COALESCE concat.
return "REPLACE(CONCAT(".implode(", ' ', ", $columns)."), ' ', ' ') ";
return 'REPLACE(CONCAT('.implode(", ' ', ", $columns)."), ' ', ' ') ";
}
}

0 comments on commit 666608c

Please sign in to comment.