Skip to content

Commit 77eb192

Browse files
committed
update php samples
1 parent 5e7cf1c commit 77eb192

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4570,7 +4570,7 @@ public function testEndpointParametersRequest(
45704570
if ($number < 32.1) {
45714571
throw new InvalidArgumentException('invalid value for "$number" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 32.1.');
45724572
}
4573-
4573+
45744574
// verify the required parameter 'double' is set
45754575
if ($double === null || (is_array($double) && count($double) === 0)) {
45764576
throw new InvalidArgumentException(
@@ -4583,7 +4583,7 @@ public function testEndpointParametersRequest(
45834583
if ($double < 67.8) {
45844584
throw new InvalidArgumentException('invalid value for "$double" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 67.8.');
45854585
}
4586-
4586+
45874587
// verify the required parameter 'pattern_without_delimiter' is set
45884588
if ($pattern_without_delimiter === null || (is_array($pattern_without_delimiter) && count($pattern_without_delimiter) === 0)) {
45894589
throw new InvalidArgumentException(
@@ -4593,7 +4593,7 @@ public function testEndpointParametersRequest(
45934593
if (!preg_match("/^[A-Z].*/", $pattern_without_delimiter)) {
45944594
throw new InvalidArgumentException("invalid value for \"pattern_without_delimiter\" when calling FakeApi.testEndpointParameters, must conform to the pattern /^[A-Z].*/.");
45954595
}
4596-
4596+
45974597
// verify the required parameter 'byte' is set
45984598
if ($byte === null || (is_array($byte) && count($byte) === 0)) {
45994599
throw new InvalidArgumentException(
@@ -4607,23 +4607,23 @@ public function testEndpointParametersRequest(
46074607
if ($integer !== null && $integer < 10) {
46084608
throw new InvalidArgumentException('invalid value for "$integer" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 10.');
46094609
}
4610-
4610+
46114611
if ($int32 !== null && $int32 > 200) {
46124612
throw new InvalidArgumentException('invalid value for "$int32" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 200.');
46134613
}
46144614
if ($int32 !== null && $int32 < 20) {
46154615
throw new InvalidArgumentException('invalid value for "$int32" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 20.');
46164616
}
4617-
4617+
46184618

46194619
if ($float !== null && $float > 987.6) {
46204620
throw new InvalidArgumentException('invalid value for "$float" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 987.6.');
46214621
}
4622-
4622+
46234623
if ($string !== null && !preg_match("/[a-z]/i", $string)) {
46244624
throw new InvalidArgumentException("invalid value for \"string\" when calling FakeApi.testEndpointParameters, must conform to the pattern /[a-z]/i.");
46254625
}
4626-
4626+
46274627

46284628

46294629

@@ -4633,7 +4633,7 @@ public function testEndpointParametersRequest(
46334633
if ($password !== null && strlen($password) < 10) {
46344634
throw new InvalidArgumentException('invalid length for "$password" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 10.');
46354635
}
4636-
4636+
46374637

46384638

46394639
$resourcePath = '/fake';
@@ -5353,7 +5353,7 @@ public function testGroupParametersRequest(
53535353
$boolean_group = array_key_exists('boolean_group', $associative_array) ? $associative_array['boolean_group'] : null;
53545354
$int64_group = array_key_exists('int64_group', $associative_array) ? $associative_array['int64_group'] : null;
53555355
$contentType = $associative_array['contentType'] ?? self::contentTypes['testGroupParameters'][0];
5356-
5356+
53575357
// verify the required parameter 'required_string_group' is set
53585358
if ($required_string_group === null || (is_array($required_string_group) && count($required_string_group) === 0)) {
53595359
throw new InvalidArgumentException(

samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ public function findPetsByTagsRequest(
13901390
'Missing the required parameter $tags when calling findPetsByTags'
13911391
);
13921392
}
1393-
1393+
13941394

13951395
$resourcePath = '/pet/findByTags';
13961396
$formParams = [];

samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ public function getOrderByIdRequest(
931931
if ($order_id < 1) {
932932
throw new InvalidArgumentException('invalid value for "$order_id" when calling StoreApi.getOrderById, must be bigger than or equal to 1.');
933933
}
934-
934+
935935

936936
$resourcePath = '/store/order/{order_id}';
937937
$formParams = [];

samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,7 @@ public function testEndpointParametersRequest($number, $double, $pattern_without
45644564
if ($number < 32.1) {
45654565
throw new \InvalidArgumentException('invalid value for "$number" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 32.1.');
45664566
}
4567-
4567+
45684568
// verify the required parameter 'double' is set
45694569
if ($double === null || (is_array($double) && count($double) === 0)) {
45704570
throw new \InvalidArgumentException(
@@ -4577,7 +4577,7 @@ public function testEndpointParametersRequest($number, $double, $pattern_without
45774577
if ($double < 67.8) {
45784578
throw new \InvalidArgumentException('invalid value for "$double" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 67.8.');
45794579
}
4580-
4580+
45814581
// verify the required parameter 'pattern_without_delimiter' is set
45824582
if ($pattern_without_delimiter === null || (is_array($pattern_without_delimiter) && count($pattern_without_delimiter) === 0)) {
45834583
throw new \InvalidArgumentException(
@@ -4587,7 +4587,7 @@ public function testEndpointParametersRequest($number, $double, $pattern_without
45874587
if (!preg_match("/^[A-Z].*/", $pattern_without_delimiter)) {
45884588
throw new \InvalidArgumentException("invalid value for \"pattern_without_delimiter\" when calling FakeApi.testEndpointParameters, must conform to the pattern /^[A-Z].*/.");
45894589
}
4590-
4590+
45914591
// verify the required parameter 'byte' is set
45924592
if ($byte === null || (is_array($byte) && count($byte) === 0)) {
45934593
throw new \InvalidArgumentException(
@@ -4601,23 +4601,23 @@ public function testEndpointParametersRequest($number, $double, $pattern_without
46014601
if ($integer !== null && $integer < 10) {
46024602
throw new \InvalidArgumentException('invalid value for "$integer" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 10.');
46034603
}
4604-
4604+
46054605
if ($int32 !== null && $int32 > 200) {
46064606
throw new \InvalidArgumentException('invalid value for "$int32" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 200.');
46074607
}
46084608
if ($int32 !== null && $int32 < 20) {
46094609
throw new \InvalidArgumentException('invalid value for "$int32" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 20.');
46104610
}
4611-
4611+
46124612

46134613
if ($float !== null && $float > 987.6) {
46144614
throw new \InvalidArgumentException('invalid value for "$float" when calling FakeApi.testEndpointParameters, must be smaller than or equal to 987.6.');
46154615
}
4616-
4616+
46174617
if ($string !== null && !preg_match("/[a-z]/i", $string)) {
46184618
throw new \InvalidArgumentException("invalid value for \"string\" when calling FakeApi.testEndpointParameters, must conform to the pattern /[a-z]/i.");
46194619
}
4620-
4620+
46214621

46224622

46234623

@@ -4627,7 +4627,7 @@ public function testEndpointParametersRequest($number, $double, $pattern_without
46274627
if ($password !== null && strlen($password) < 10) {
46284628
throw new \InvalidArgumentException('invalid length for "$password" when calling FakeApi.testEndpointParameters, must be bigger than or equal to 10.');
46294629
}
4630-
4630+
46314631

46324632

46334633
$resourcePath = '/fake';
@@ -5280,7 +5280,7 @@ public function testGroupParametersRequest($associative_array)
52805280
$boolean_group = array_key_exists('boolean_group', $associative_array) ? $associative_array['boolean_group'] : null;
52815281
$int64_group = array_key_exists('int64_group', $associative_array) ? $associative_array['int64_group'] : null;
52825282
$contentType = $associative_array['contentType'] ?? self::contentTypes['testGroupParameters'][0];
5283-
5283+
52845284
// verify the required parameter 'required_string_group' is set
52855285
if ($required_string_group === null || (is_array($required_string_group) && count($required_string_group) === 0)) {
52865286
throw new \InvalidArgumentException(

samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ public function findPetsByTagsRequest($tags, string $contentType = self::content
13151315
'Missing the required parameter $tags when calling findPetsByTags'
13161316
);
13171317
}
1318-
1318+
13191319

13201320
$resourcePath = '/pet/findByTags';
13211321
$formParams = [];

samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public function getOrderByIdRequest($order_id, string $contentType = self::conte
891891
if ($order_id < 1) {
892892
throw new \InvalidArgumentException('invalid value for "$order_id" when calling StoreApi.getOrderById, must be bigger than or equal to 1.');
893893
}
894-
894+
895895

896896
$resourcePath = '/store/order/{order_id}';
897897
$formParams = [];

0 commit comments

Comments
 (0)