Skip to content

Commit 2bbc56c

Browse files
committed
Merge remote-tracking branch 'origin/task-107572' into task-107572
2 parents 334f052 + 75a5673 commit 2bbc56c

File tree

11 files changed

+26
-14
lines changed

11 files changed

+26
-14
lines changed

src/Suggesting/Request/Concerns/WithMaxEdits.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ public function maxEdits(int $maxEdits): static
1616

1717
return $this;
1818
}
19-
20-
}
19+
}

src/Suggesting/Request/Concerns/WithMaxInspections.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public function maxInspections(int $maxInspections): static
1212

1313
return $this;
1414
}
15-
}
15+
}

src/Suggesting/Request/Concerns/WithMaxTermFreq.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public function maxTermFreq(int $maxTermFreq): static
1212

1313
return $this;
1414
}
15-
}
15+
}

src/Suggesting/Request/Concerns/WithMinDocFreq.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public function minDocFreq(int $minDocFreq): static
1212

1313
return $this;
1414
}
15-
}
15+
}

src/Suggesting/Request/Concerns/WithMinWordLength.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ public function minWordLength(int $minWordLength): static
1212

1313
return $this;
1414
}
15-
16-
}
15+
}

src/Suggesting/Request/Concerns/WithPrefixLength.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public function prefixLength(int $prefixLength): static
1212

1313
return $this;
1414
}
15-
}
15+
}

src/Suggesting/Request/Concerns/WithSize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public function size(int $size): static
1212

1313
return $this;
1414
}
15-
}
15+
}

src/Suggesting/Request/Concerns/WithSuggestMode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ public function suggestModeAlways(): static
2828

2929
return $this;
3030
}
31-
}
31+
}

src/Suggesting/Request/DirectGenerator.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313

1414
class DirectGenerator
1515
{
16-
use WithSuggestMode, WithSize, WithMaxEdits, WithPrefixLength, WithMinWordLength, WithMaxInspections, WithMinDocFreq, WithMaxTermFreq;
16+
use WithSuggestMode;
17+
use WithSize;
18+
use WithMaxEdits;
19+
use WithPrefixLength;
20+
use WithMinWordLength;
21+
use WithMaxInspections;
22+
use WithMinDocFreq;
23+
use WithMaxTermFreq;
1724
protected ?string $preFilter = null;
1825
protected ?string $postFilter = null;
1926

@@ -51,4 +58,4 @@ public function postFilter(string $postFilter): static
5158

5259
return $this;
5360
}
54-
}
61+
}

src/Suggesting/Request/PhraseSuggester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function toDSL(): array
4747
"pre_tag" => $this->highlightPreTag,
4848
"post_tag" => $this->highlightPostTag,
4949
]) ?: null,
50-
"direct_generator" => array_map(fn(DirectGenerator $g) => $g->toDSL(), $this->directGenerators),
50+
"direct_generator" => array_map(fn (DirectGenerator $g) => $g->toDSL(), $this->directGenerators),
5151
// todo collate
5252
// todo smoothing models
5353
]),

0 commit comments

Comments
 (0)