Skip to content

Commit b7f8a44

Browse files
committed
[php-nextgen] Remove whitespace
1 parent c4dfcf7 commit b7f8a44

20 files changed

Lines changed: 9 additions & 85 deletions

File tree

modules/openapi-generator/src/main/resources/php-nextgen/api.mustache

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,21 @@ use {{invokerPackage}}\ObjectSerializer;
307307
}
308308
{{/-last}}
309309
{{/responses}}
310-
{{#responses}}{{#dataType}}{{#isRange}}{{^isWildcard}}
310+
{{#responses}}
311+
{{#dataType}}
312+
{{#isRange}}
313+
{{^isWildcard}}
311314
if ($this->responseWithinRangeCode('{{code}}', $statusCode)) {
312315
return $this->handleResponseWithDataType(
313316
'{{{dataType}}}',
314317
$request,
315318
$response,
316319
);
317-
}{{/isWildcard}}{{/isRange}}{{/dataType}}{{/responses}}
320+
}
321+
{{/isWildcard}}
322+
{{/isRange}}
323+
{{/dataType}}
324+
{{/responses}}
318325

319326
if ($statusCode < 200 || $statusCode > 299) {
320327
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ public function testAuthHttpBasicWithHttpInfo(
195195
$response,
196196
);
197197
}
198-
199198

200199
if ($statusCode < 200 || $statusCode > 299) {
201200
throw new ApiException(
@@ -454,7 +453,6 @@ public function testAuthHttpBearerWithHttpInfo(
454453
$response,
455454
);
456455
}
457-
458456

459457
if ($statusCode < 200 || $statusCode > 299) {
460458
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ public function testBinaryGifWithHttpInfo(
219219
$response,
220220
);
221221
}
222-
223222

224223
if ($statusCode < 200 || $statusCode > 299) {
225224
throw new ApiException(
@@ -477,7 +476,6 @@ public function testBodyApplicationOctetstreamBinaryWithHttpInfo(
477476
$response,
478477
);
479478
}
480-
481479

482480
if ($statusCode < 200 || $statusCode > 299) {
483481
throw new ApiException(
@@ -749,7 +747,6 @@ public function testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(
749747
$response,
750748
);
751749
}
752-
753750

754751
if ($statusCode < 200 || $statusCode > 299) {
755752
throw new ApiException(
@@ -1029,7 +1026,6 @@ public function testBodyMultipartFormdataSingleBinaryWithHttpInfo(
10291026
$response,
10301027
);
10311028
}
1032-
10331029

10341030
if ($statusCode < 200 || $statusCode > 299) {
10351031
throw new ApiException(
@@ -1303,7 +1299,6 @@ public function testEchoBodyAllOfPetWithHttpInfo(
13031299
$response,
13041300
);
13051301
}
1306-
13071302

13081303
if ($statusCode < 200 || $statusCode > 299) {
13091304
throw new ApiException(
@@ -1575,7 +1570,6 @@ public function testEchoBodyFreeFormObjectResponseStringWithHttpInfo(
15751570
$response,
15761571
);
15771572
}
1578-
15791573

15801574
if ($statusCode < 200 || $statusCode > 299) {
15811575
throw new ApiException(
@@ -1847,7 +1841,6 @@ public function testEchoBodyPetWithHttpInfo(
18471841
$response,
18481842
);
18491843
}
1850-
18511844

18521845
if ($statusCode < 200 || $statusCode > 299) {
18531846
throw new ApiException(
@@ -2119,7 +2112,6 @@ public function testEchoBodyPetResponseStringWithHttpInfo(
21192112
$response,
21202113
);
21212114
}
2122-
21232115

21242116
if ($statusCode < 200 || $statusCode > 299) {
21252117
throw new ApiException(
@@ -2391,7 +2383,6 @@ public function testEchoBodyStringEnumWithHttpInfo(
23912383
$response,
23922384
);
23932385
}
2394-
23952386

23962387
if ($statusCode < 200 || $statusCode > 299) {
23972388
throw new ApiException(
@@ -2663,7 +2654,6 @@ public function testEchoBodyTagResponseStringWithHttpInfo(
26632654
$response,
26642655
);
26652656
}
2666-
26672657

26682658
if ($statusCode < 200 || $statusCode > 299) {
26692659
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ public function testFormIntegerBooleanStringWithHttpInfo(
210210
$response,
211211
);
212212
}
213-
214213

215214
if ($statusCode < 200 || $statusCode > 299) {
216215
throw new ApiException(
@@ -500,7 +499,6 @@ public function testFormObjectMultipartWithHttpInfo(
500499
$response,
501500
);
502501
}
503-
504502

505503
if ($statusCode < 200 || $statusCode > 299) {
506504
throw new ApiException(
@@ -800,7 +798,6 @@ public function testFormOneofWithHttpInfo(
800798
$response,
801799
);
802800
}
803-
804801

805802
if ($statusCode < 200 || $statusCode > 299) {
806803
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ public function testHeaderIntegerBooleanStringEnumsWithHttpInfo(
212212
$response,
213213
);
214214
}
215-
216215

217216
if ($statusCode < 200 || $statusCode > 299) {
218217
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE
208208
$response,
209209
);
210210
}
211-
212211

213212
if ($statusCode < 200 || $statusCode > 299) {
214213
throw new ApiException(

samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ public function testEnumRefStringWithHttpInfo(
230230
$response,
231231
);
232232
}
233-
234233

235234
if ($statusCode < 200 || $statusCode > 299) {
236235
throw new ApiException(
@@ -528,7 +527,6 @@ public function testQueryDatetimeDateStringWithHttpInfo(
528527
$response,
529528
);
530529
}
531-
532530

533531
if ($statusCode < 200 || $statusCode > 299) {
534532
throw new ApiException(
@@ -842,7 +840,6 @@ public function testQueryIntegerBooleanStringWithHttpInfo(
842840
$response,
843841
);
844842
}
845-
846843

847844
if ($statusCode < 200 || $statusCode > 299) {
848845
throw new ApiException(
@@ -1148,7 +1145,6 @@ public function testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(
11481145
$response,
11491146
);
11501147
}
1151-
11521148

11531149
if ($statusCode < 200 || $statusCode > 299) {
11541150
throw new ApiException(
@@ -1422,7 +1418,6 @@ public function testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(
14221418
$response,
14231419
);
14241420
}
1425-
14261421

14271422
if ($statusCode < 200 || $statusCode > 299) {
14281423
throw new ApiException(
@@ -1696,7 +1691,6 @@ public function testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(
16961691
$response,
16971692
);
16981693
}
1699-
17001694

17011695
if ($statusCode < 200 || $statusCode > 299) {
17021696
throw new ApiException(
@@ -1970,7 +1964,6 @@ public function testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(
19701964
$response,
19711965
);
19721966
}
1973-
19741967

19751968
if ($statusCode < 200 || $statusCode > 299) {
19761969
throw new ApiException(
@@ -2244,7 +2237,6 @@ public function testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(
22442237
$response,
22452238
);
22462239
}
2247-
22482240

22492241
if ($statusCode < 200 || $statusCode > 299) {
22502242
throw new ApiException(
@@ -2518,7 +2510,6 @@ public function testQueryStyleFormExplodeTrueObjectWithHttpInfo(
25182510
$response,
25192511
);
25202512
}
2521-
25222513

25232514
if ($statusCode < 200 || $statusCode > 299) {
25242515
throw new ApiException(
@@ -2792,7 +2783,6 @@ public function testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(
27922783
$response,
27932784
);
27942785
}
2795-
27962786

27972787
if ($statusCode < 200 || $statusCode > 299) {
27982788
throw new ApiException(
@@ -3070,7 +3060,6 @@ public function testQueryStyleJsonSerializationObjectWithHttpInfo(
30703060
$response,
30713061
);
30723062
}
3073-
30743063

30753064
if ($statusCode < 200 || $statusCode > 299) {
30763065
throw new ApiException(

samples/client/echo_api/php-nextgen/src/Api/AuthApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ public function testAuthHttpBasicWithHttpInfo(
195195
$response,
196196
);
197197
}
198-
199198

200199
if ($statusCode < 200 || $statusCode > 299) {
201200
throw new ApiException(
@@ -454,7 +453,6 @@ public function testAuthHttpBearerWithHttpInfo(
454453
$response,
455454
);
456455
}
457-
458456

459457
if ($statusCode < 200 || $statusCode > 299) {
460458
throw new ApiException(

samples/client/echo_api/php-nextgen/src/Api/BodyApi.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ public function testBinaryGifWithHttpInfo(
219219
$response,
220220
);
221221
}
222-
223222

224223
if ($statusCode < 200 || $statusCode > 299) {
225224
throw new ApiException(
@@ -477,7 +476,6 @@ public function testBodyApplicationOctetstreamBinaryWithHttpInfo(
477476
$response,
478477
);
479478
}
480-
481479

482480
if ($statusCode < 200 || $statusCode > 299) {
483481
throw new ApiException(
@@ -749,7 +747,6 @@ public function testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(
749747
$response,
750748
);
751749
}
752-
753750

754751
if ($statusCode < 200 || $statusCode > 299) {
755752
throw new ApiException(
@@ -1029,7 +1026,6 @@ public function testBodyMultipartFormdataSingleBinaryWithHttpInfo(
10291026
$response,
10301027
);
10311028
}
1032-
10331029

10341030
if ($statusCode < 200 || $statusCode > 299) {
10351031
throw new ApiException(
@@ -1303,7 +1299,6 @@ public function testEchoBodyAllOfPetWithHttpInfo(
13031299
$response,
13041300
);
13051301
}
1306-
13071302

13081303
if ($statusCode < 200 || $statusCode > 299) {
13091304
throw new ApiException(
@@ -1575,7 +1570,6 @@ public function testEchoBodyFreeFormObjectResponseStringWithHttpInfo(
15751570
$response,
15761571
);
15771572
}
1578-
15791573

15801574
if ($statusCode < 200 || $statusCode > 299) {
15811575
throw new ApiException(
@@ -1847,7 +1841,6 @@ public function testEchoBodyPetWithHttpInfo(
18471841
$response,
18481842
);
18491843
}
1850-
18511844

18521845
if ($statusCode < 200 || $statusCode > 299) {
18531846
throw new ApiException(
@@ -2119,7 +2112,6 @@ public function testEchoBodyPetResponseStringWithHttpInfo(
21192112
$response,
21202113
);
21212114
}
2122-
21232115

21242116
if ($statusCode < 200 || $statusCode > 299) {
21252117
throw new ApiException(
@@ -2391,7 +2383,6 @@ public function testEchoBodyStringEnumWithHttpInfo(
23912383
$response,
23922384
);
23932385
}
2394-
23952386

23962387
if ($statusCode < 200 || $statusCode > 299) {
23972388
throw new ApiException(
@@ -2663,7 +2654,6 @@ public function testEchoBodyTagResponseStringWithHttpInfo(
26632654
$response,
26642655
);
26652656
}
2666-
26672657

26682658
if ($statusCode < 200 || $statusCode > 299) {
26692659
throw new ApiException(

samples/client/echo_api/php-nextgen/src/Api/FormApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ public function testFormIntegerBooleanStringWithHttpInfo(
210210
$response,
211211
);
212212
}
213-
214213

215214
if ($statusCode < 200 || $statusCode > 299) {
216215
throw new ApiException(
@@ -500,7 +499,6 @@ public function testFormObjectMultipartWithHttpInfo(
500499
$response,
501500
);
502501
}
503-
504502

505503
if ($statusCode < 200 || $statusCode > 299) {
506504
throw new ApiException(
@@ -800,7 +798,6 @@ public function testFormOneofWithHttpInfo(
800798
$response,
801799
);
802800
}
803-
804801

805802
if ($statusCode < 200 || $statusCode > 299) {
806803
throw new ApiException(

0 commit comments

Comments
 (0)