Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit f00fcee

Browse files
author
Mateusz Gostański
committed
Cleaned method name.
From 'checkInConfig' to 'checkInAllowedValues' in AbstractMultiParamUrlBuilder
1 parent 700928f commit f00fcee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Builders/AbstractMultiParamUrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct(array $allowedValues)
1414
$this->allowedValues = $allowedValues;
1515
}
1616

17-
protected function checkInConfig(array $params): void
17+
protected function checkInAllowedValues(array $params): void
1818
{
1919
foreach ($params as $param) {
2020
if (!in_array($param, $this->allowedValues)) {

src/Builders/ArrayBasedUrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function get(): string
2323

2424
public function add($param, ...$values): static
2525
{
26-
$this->checkInConfig([$param]);
26+
$this->checkInAllowedValues([$param]);
2727

2828
$valuesCollection = collect($values);
2929
$compiledString = $this->prefix.'['.$param.']='.$valuesCollection->join(',');

src/Builders/CommaSeparatedValueUrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function get(): string
1919

2020
public function add($param, ...$values): static
2121
{
22-
$this->checkInConfig($values);
22+
$this->checkInAllowedValues($values);
2323

2424
$this->param = $param;
2525
$this->values = collect($values);

0 commit comments

Comments
 (0)