Skip to content

Commit 924937c

Browse files
committed
Remove 'location' type check from parameter handling
1 parent 40389df commit 924937c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/php/base/requests/api.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Client::METHOD_{{ method.method | caseUpper }},
33
$apiPath,
44
$apiHeaders,
5-
$apiParams{% if method.type == 'webAuth' or method.type == 'location' -%}, 'location'{% endif %}
5+
$apiParams{% if method.type == 'webAuth' -%}, 'location'{% endif %}
66

77
);

templates/php/tests/Services/ServiceTest.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class {{service.name | caseUcfirst}}Test extends TestCase {
5151
{%~ endif ~%}
5252
5353
$this->client
54-
->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any(){% if method.type == 'webAuth' or method.type == 'location' %}, Mockery::any(){% endif %})
54+
->allows()->call(Mockery::any(), Mockery::any(), Mockery::any(), Mockery::any(){% if method.type == 'webAuth' %}, Mockery::any(){% endif %})
5555
->andReturn($data);
5656
5757
$response = $this->{{service.name | caseCamel}}->{{method.name | caseCamel}}({%~ for parameter in method.parameters.all | filter((param) => param.required) ~%}

0 commit comments

Comments
 (0)