Skip to content

Commit 84af51a

Browse files
committed
Regenerate samples
1 parent 733d2ed commit 84af51a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function getHeaderAndWeight(string $header): array
152152
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
153153
$headerData = [
154154
'header' => $outputArray[1],
155-
'weight' => (int)($outputArray[2] * 1000),
155+
'weight' => (int)$outputArray[2] * 1000,
156156
];
157157
} else {
158158
$headerData = [

samples/client/echo_api/php-nextgen/src/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function getHeaderAndWeight(string $header): array
152152
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
153153
$headerData = [
154154
'header' => $outputArray[1],
155-
'weight' => (int)($outputArray[2] * 1000),
155+
'weight' => (int)$outputArray[2] * 1000,
156156
];
157157
} else {
158158
$headerData = [

samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function getHeaderAndWeight(string $header): array
151151
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
152152
$headerData = [
153153
'header' => $outputArray[1],
154-
'weight' => (int)($outputArray[2] * 1000),
154+
'weight' => (int)$outputArray[2] * 1000,
155155
];
156156
} else {
157157
$headerData = [

samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function getHeaderAndWeight(string $header): array
181181
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
182182
$headerData = [
183183
'header' => $outputArray[1],
184-
'weight' => (int)($outputArray[2] * 1000),
184+
'weight' => (int)$outputArray[2] * 1000,
185185
];
186186
} else {
187187
$headerData = [

samples/client/petstore/php/psr-18/lib/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function getHeaderAndWeight(string $header): array
181181
if (preg_match('/(.*);\s*q=(1(?:\.0+)?|0\.\d+)$/', $header, $outputArray) === 1) {
182182
$headerData = [
183183
'header' => $outputArray[1],
184-
'weight' => (int)($outputArray[2] * 1000),
184+
'weight' => (int)$outputArray[2] * 1000,
185185
];
186186
} else {
187187
$headerData = [

0 commit comments

Comments
 (0)