Skip to content

Commit 76a1a78

Browse files
committed
[php]: Regenerate sample with fixed documentation indention
1 parent 734d50d commit 76a1a78

174 files changed

Lines changed: 4905 additions & 4905 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,13 @@ public function getHostSettings(): array
475475
}
476476

477477
/**
478-
* Returns URL based on host settings, index and variables
479-
*
480-
* @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients
481-
* @param int $hostIndex index of the host settings
482-
* @param array|null $variables hash of variable and the corresponding value (optional)
483-
* @return string URL based on host settings
484-
*/
478+
* Returns URL based on host settings, index and variables
479+
*
480+
* @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients
481+
* @param int $hostIndex index of the host settings
482+
* @param array|null $variables hash of variable and the corresponding value (optional)
483+
* @return string URL based on host settings
484+
*/
485485
public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string
486486
{
487487
if (null === $variables) {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ private function selectAcceptHeader(array $accept): ?string
9595
}
9696

9797
/**
98-
* Create an Accept header string from the given "Accept" headers array, recalculating all weights
99-
*
100-
* @param string[] $accept Array of Accept Headers
101-
* @param string[] $headersWithJson Array of Accept Headers of type "json"
102-
*
103-
* @return string "Accept" Header (e.g. "application/json, text/html; q=0.9")
104-
*/
98+
* Create an Accept header string from the given "Accept" headers array, recalculating all weights
99+
*
100+
* @param string[] $accept Array of Accept Headers
101+
* @param string[] $headersWithJson Array of Accept Headers of type "json"
102+
*
103+
* @return string "Accept" Header (e.g. "application/json, text/html; q=0.9")
104+
*/
105105
private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string
106106
{
107107
$processedHeaders = [

samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,47 +47,47 @@ class Bird implements ModelInterface, ArrayAccess, JsonSerializable
4747
public const DISCRIMINATOR = null;
4848

4949
/**
50-
* The original name of the model.
51-
*
52-
* @var string
53-
*/
50+
* The original name of the model.
51+
*
52+
* @var string
53+
*/
5454
protected static string $openAPIModelName = 'Bird';
5555

5656
/**
57-
* Array of property to type mappings. Used for (de)serialization
58-
*
59-
* @var array<string, string>
60-
*/
57+
* Array of property to type mappings. Used for (de)serialization
58+
*
59+
* @var array<string, string>
60+
*/
6161
protected static array $openAPITypes = [
6262
'size' => 'string',
6363
'color' => 'string'
6464
];
6565

6666
/**
67-
* Array of property to format mappings. Used for (de)serialization
68-
*
69-
* @var array<string, string|null>
70-
*/
67+
* Array of property to format mappings. Used for (de)serialization
68+
*
69+
* @var array<string, string|null>
70+
*/
7171
protected static array $openAPIFormats = [
7272
'size' => null,
7373
'color' => null
7474
];
7575

7676
/**
77-
* Array of nullable properties. Used for (de)serialization
78-
*
79-
* @var array<string, bool>
80-
*/
77+
* Array of nullable properties. Used for (de)serialization
78+
*
79+
* @var array<string, bool>
80+
*/
8181
protected static array $openAPINullables = [
8282
'size' => false,
8383
'color' => false
8484
];
8585

8686
/**
87-
* If a nullable field gets set to null, insert it here
88-
*
89-
* @var array<string, bool>
90-
*/
87+
* If a nullable field gets set to null, insert it here
88+
*
89+
* @var array<string, bool>
90+
/
9191
protected array $openAPINullablesSetToNull = [];
9292
9393
/**
@@ -254,14 +254,14 @@ public function __construct(?array $data = null)
254254
}
255255

256256
/**
257-
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
258-
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
259-
* $this->openAPINullablesSetToNull array
260-
*
261-
* @param string $variableName
262-
* @param array $fields
263-
* @param mixed $defaultValue
264-
*/
257+
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
258+
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
259+
* $this->openAPINullablesSetToNull array
260+
*
261+
* @param string $variableName
262+
* @param array $fields
263+
* @param mixed $defaultValue
264+
*/
265265
private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void
266266
{
267267
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {

samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,47 +47,47 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable
4747
public const DISCRIMINATOR = null;
4848

4949
/**
50-
* The original name of the model.
51-
*
52-
* @var string
53-
*/
50+
* The original name of the model.
51+
*
52+
* @var string
53+
*/
5454
protected static string $openAPIModelName = 'Category';
5555

5656
/**
57-
* Array of property to type mappings. Used for (de)serialization
58-
*
59-
* @var array<string, string>
60-
*/
57+
* Array of property to type mappings. Used for (de)serialization
58+
*
59+
* @var array<string, string>
60+
*/
6161
protected static array $openAPITypes = [
6262
'id' => 'int',
6363
'name' => 'string'
6464
];
6565

6666
/**
67-
* Array of property to format mappings. Used for (de)serialization
68-
*
69-
* @var array<string, string|null>
70-
*/
67+
* Array of property to format mappings. Used for (de)serialization
68+
*
69+
* @var array<string, string|null>
70+
*/
7171
protected static array $openAPIFormats = [
7272
'id' => 'int64',
7373
'name' => null
7474
];
7575

7676
/**
77-
* Array of nullable properties. Used for (de)serialization
78-
*
79-
* @var array<string, bool>
80-
*/
77+
* Array of nullable properties. Used for (de)serialization
78+
*
79+
* @var array<string, bool>
80+
*/
8181
protected static array $openAPINullables = [
8282
'id' => false,
8383
'name' => false
8484
];
8585

8686
/**
87-
* If a nullable field gets set to null, insert it here
88-
*
89-
* @var array<string, bool>
90-
*/
87+
* If a nullable field gets set to null, insert it here
88+
*
89+
* @var array<string, bool>
90+
/
9191
protected array $openAPINullablesSetToNull = [];
9292
9393
/**
@@ -254,14 +254,14 @@ public function __construct(?array $data = null)
254254
}
255255

256256
/**
257-
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
258-
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
259-
* $this->openAPINullablesSetToNull array
260-
*
261-
* @param string $variableName
262-
* @param array $fields
263-
* @param mixed $defaultValue
264-
*/
257+
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
258+
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
259+
* $this->openAPINullablesSetToNull array
260+
*
261+
* @param string $variableName
262+
* @param array $fields
263+
* @param mixed $defaultValue
264+
*/
265265
private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void
266266
{
267267
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {

samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,50 +41,50 @@ class DataQuery extends Query
4141
public const DISCRIMINATOR = null;
4242

4343
/**
44-
* The original name of the model.
45-
*
46-
* @var string
47-
*/
44+
* The original name of the model.
45+
*
46+
* @var string
47+
*/
4848
protected static string $openAPIModelName = 'DataQuery';
4949

5050
/**
51-
* Array of property to type mappings. Used for (de)serialization
52-
*
53-
* @var array<string, string>
54-
*/
51+
* Array of property to type mappings. Used for (de)serialization
52+
*
53+
* @var array<string, string>
54+
*/
5555
protected static array $openAPITypes = [
5656
'suffix' => 'string',
5757
'text' => 'string',
5858
'date' => '\DateTime'
5959
];
6060

6161
/**
62-
* Array of property to format mappings. Used for (de)serialization
63-
*
64-
* @var array<string, string|null>
65-
*/
62+
* Array of property to format mappings. Used for (de)serialization
63+
*
64+
* @var array<string, string|null>
65+
*/
6666
protected static array $openAPIFormats = [
6767
'suffix' => null,
6868
'text' => null,
6969
'date' => 'date-time'
7070
];
7171

7272
/**
73-
* Array of nullable properties. Used for (de)serialization
74-
*
75-
* @var array<string, bool>
76-
*/
73+
* Array of nullable properties. Used for (de)serialization
74+
*
75+
* @var array<string, bool>
76+
*/
7777
protected static array $openAPINullables = [
7878
'suffix' => false,
7979
'text' => false,
8080
'date' => false
8181
];
8282

8383
/**
84-
* If a nullable field gets set to null, insert it here
85-
*
86-
* @var array<string, bool>
87-
*/
84+
* If a nullable field gets set to null, insert it here
85+
*
86+
* @var array<string, bool>
87+
/
8888
protected array $openAPINullablesSetToNull = [];
8989
9090
/**
@@ -251,14 +251,14 @@ public function __construct(?array $data = null)
251251
}
252252

253253
/**
254-
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
255-
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
256-
* $this->openAPINullablesSetToNull array
257-
*
258-
* @param string $variableName
259-
* @param array $fields
260-
* @param mixed $defaultValue
261-
*/
254+
* Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
255+
* is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
256+
* $this->openAPINullablesSetToNull array
257+
*
258+
* @param string $variableName
259+
* @param array $fields
260+
* @param mixed $defaultValue
261+
*/
262262
private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void
263263
{
264264
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {

0 commit comments

Comments
 (0)