Skip to content

Commit cf5a905

Browse files
AlexVanderbistactions-user
authored andcommitted
Fix styling
1 parent 070e34f commit cf5a905

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.php-cs-fixer.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"php":"8.0.5","version":"3.0.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_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"}},"single_trait_insert_per_statement":true},"hashes":{"src\/Concerns\/ForwardsCalls.php":1561246881,"src\/SearchQuery.php":904772392,"src\/SearchResults.php":1400944556,"src\/SearchHit.php":2068485165,"src\/SearchExecutor.php":2885522307,"src\/Directives\/BaseDirective.php":343572337,"src\/Directives\/DateRangeKeyValuePatternDirective.php":2189551149,"src\/Directives\/GroupDirective.php":968603032,"src\/Directives\/DateKeyValuePatternDirective.php":4082701461,"src\/Directives\/FuzzyKeyValuePatternDirective.php":1311328756,"src\/Directives\/ColumnGroupDirective.php":1730858933,"src\/Directives\/FuzzyValueBaseDirective.php":2110226777,"src\/Directives\/PatternDirective.php":1606954861,"tests\/stubs\/FlareContextGroupDirective.php":3393435878,"tests\/stubs\/Data\/ErrorOccurrenceGrouping.php":855156310,"tests\/stubs\/Data\/ErrorOccurrence.php":795272725,"tests\/stubs\/Data\/ErrorOccurrenceHit.php":141751169,"tests\/stubs\/FlareGroupDirective.php":3194451501,"tests\/Fakes\/FakeElasticSearchClient.php":3633090768,"tests\/TestCase.php":3201134510,"tests\/SearchQueryTest.php":3899440115,"tests\/Support\/PayloadFactory.php":1983555671,"src\/Support\/Regex.php":1588407898}}
1+
{"php":"8.0.5","version":"3.0.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_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"}},"single_trait_insert_per_statement":true},"hashes":{"src\/Concerns\/ForwardsCalls.php":1561246881,"src\/SearchQuery.php":904772392,"src\/SearchResults.php":1400944556,"src\/SearchHit.php":2068485165,"src\/SearchExecutor.php":3386966144,"src\/Directives\/BaseDirective.php":1837670501,"src\/Directives\/DateRangeKeyValuePatternDirective.php":2189551149,"src\/Directives\/GroupDirective.php":968603032,"src\/Directives\/DateKeyValuePatternDirective.php":4082701461,"src\/Directives\/FuzzyKeyValuePatternDirective.php":3299415763,"src\/Directives\/ColumnGroupDirective.php":1730858933,"src\/Directives\/FuzzyValueBaseDirective.php":4213220924,"src\/Directives\/PatternDirective.php":1732368638,"tests\/stubs\/FlareContextGroupDirective.php":3393435878,"tests\/stubs\/Data\/ErrorOccurrenceGrouping.php":855156310,"tests\/stubs\/Data\/ErrorOccurrence.php":795272725,"tests\/stubs\/Data\/ErrorOccurrenceHit.php":141751169,"tests\/stubs\/FlareGroupDirective.php":3194451501,"tests\/Fakes\/FakeElasticSearchClient.php":3633090768,"tests\/TestCase.php":3201134510,"tests\/SearchQueryTest.php":3899440115,"tests\/Support\/PayloadFactory.php":1983555671,"src\/Support\/Regex.php":1588407898,"src\/Suggestion.php":2090866737}}

src/Directives/FuzzyValueBaseDirective.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FuzzyValueBaseDirective extends BaseDirective
1111
{
1212
public function __construct(
1313
protected array $fields,
14-
protected int|string $fuzziness = 'auto',
14+
protected int | string $fuzziness = 'auto',
1515
) {
1616
}
1717

@@ -25,7 +25,7 @@ public static function forFields(string ...$fields): static
2525
return new static($fields);
2626
}
2727

28-
public function setFuzziness(string|int $fuzziness): self
28+
public function setFuzziness(string | int $fuzziness): self
2929
{
3030
$this->fuzziness = $fuzziness;
3131

@@ -56,14 +56,14 @@ public function transformToSuggestions(array $results): array
5656
}
5757

5858
$validAggregations = array_map(
59-
fn(string $field) => "_{$field}_suggestions",
59+
fn (string $field) => "_{$field}_suggestions",
6060
$this->fields
6161
);
6262

6363
return collect($results['aggregations'] ?? [])
64-
->filter(fn(array $aggregation, string $name) => in_array($name, $validAggregations))
65-
->flatMap(fn(array $aggregation) => array_map(
66-
fn(array $bucket) => Suggestion::fromBucket($bucket),
64+
->filter(fn (array $aggregation, string $name) => in_array($name, $validAggregations))
65+
->flatMap(fn (array $aggregation) => array_map(
66+
fn (array $bucket) => Suggestion::fromBucket($bucket),
6767
$aggregation['buckets']
6868
))
6969
->toArray();

src/Suggestion.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Suggestion
66
{
77
public function __construct(public string $suggestion, public ?int $count = null)
88
{
9-
109
}
1110

1211
public static function fromBucket(array $bucket): self

0 commit comments

Comments
 (0)