Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
luckykenlin authored and github-actions[bot] committed Oct 31, 2022
1 parent 126054a commit d79756e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"php":"8.1.8","version":"3.9.5","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Components\/Filter.php":2060896782,"src\/Components\/SelectFilter.php":2677361473,"src\/Components\/MultiSelectFilter.php":1524021542,"src\/Components\/BooleanFilter.php":1220810282,"src\/Components\/DeleteModel.php":3767555004,"src\/LivewireTables.php":678464912,"src\/Views\/Boolean.php":3430593268,"src\/Views\/Action.php":4182268141,"src\/Views\/Column.php":843095290,"src\/LivewireTablesServiceProvider.php":3503351051,"src\/Traits\/Searchable.php":412162542,"src\/Traits\/Pagination.php":1458082234,"src\/Traits\/NewResource.php":3015527705,"src\/Traits\/Refreshable.php":1430636112,"src\/Traits\/Relation.php":2586909384,"src\/Traits\/Sortable.php":3877162524,"src\/Traits\/Deletable.php":1282411553,"src\/Traits\/Filterable.php":864127016,"src\/Helper.php":2793492810,"src\/LivewireTablesFacade.php":438060118,"src\/Commands\/LivewireTablesCommand.php":2666164404,"tests\/ExampleTest.php":3241556039,"tests\/Database\/Factories\/ModelFactory.php":2914300996,"tests\/Database\/Factories\/DummyModelFactory.php":2622737264,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_belongs_to_many_models_table.php":2336580794,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_has_one_models_table.php":1628981282,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_models_table.php":1851216810,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_has_many_models_table.php":980697729,"tests\/LivewireTableTest.php":4230192042,"tests\/Classes\/DummyTable.php":4083648276,"tests\/Models\/DummyBelongsToManyModel.php":1793736053,"tests\/Models\/DummyModel.php":3638312086,"tests\/Models\/DummyHasOneModel.php":3869693259,"tests\/Models\/DummyHasManyModel.php":3232985211,"tests\/TestCase.php":813606208}}
{"php":"8.1.11","version":"3.12.0","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":{"elements":["method","property"]},"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sort_algorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true,"class_attributes_separation":{"elements":{"method":"one"}}},"hashes":{"src\/Helper.php":2793492810,"src\/LivewireTables.php":2839996758,"src\/LivewireTablesServiceProvider.php":3503351051,"src\/Commands\/LivewireTablesCommand.php":2666164404,"src\/Traits\/Refreshable.php":1430636112,"src\/Traits\/Searchable.php":60806545,"src\/Traits\/Filterable.php":864127016,"src\/Traits\/NewResource.php":3015527705,"src\/Traits\/Pagination.php":1458082234,"src\/Traits\/Sortable.php":3877162524,"src\/Traits\/Relation.php":3905281158,"src\/Traits\/Deletable.php":1282411553,"src\/Views\/Column.php":843095290,"src\/Views\/Action.php":4182268141,"src\/Views\/Boolean.php":3430593268,"src\/LivewireTablesFacade.php":438060118,"src\/Components\/BooleanFilter.php":1220810282,"src\/Components\/Filter.php":2060896782,"src\/Components\/MultiSelectFilter.php":1524021542,"src\/Components\/DeleteModel.php":3767555004,"src\/Components\/SelectFilter.php":2677361473,"tests\/Classes\/DummyTable.php":4083648276,"tests\/TestCase.php":813606208,"tests\/Database\/Factories\/ModelFactory.php":2914300996,"tests\/Database\/Factories\/DummyModelFactory.php":2622737264,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_belongs_to_many_models_table.php":2336580794,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_has_one_models_table.php":1628981282,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_has_many_models_table.php":980697729,"tests\/Database\/Migrations\/2020_06_25_211600_create_dummy_models_table.php":1851216810,"tests\/ExampleTest.php":3241556039,"tests\/LivewireTableTest.php":4230192042,"tests\/Models\/DummyModel.php":3638312086,"tests\/Models\/DummyHasManyModel.php":3232985211,"tests\/Models\/DummyBelongsToManyModel.php":1793736053,"tests\/Models\/DummyHasOneModel.php":3869693259}}
3 changes: 0 additions & 3 deletions src/Traits/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,13 @@ protected function applySearch(Builder $builder): Builder
collect($this->columns())
->reject(fn ($column) => ! $column->isSearchable())
->each(function (Column $column) use ($builder) {

// If the column has a search callback, just use that
if ($column->hasSearchCallback()) {

// Call the callback
($column->getSearchCallback())($builder, trim($this->search));

// Search for relation
} elseif ($column->hasRelationship()) {

// Get relation of column
$relationship = $this->relationship($column->attribute);

Expand Down

0 comments on commit d79756e

Please sign in to comment.