Skip to content

Commit b9bb341

Browse files
committed
Fix camel case format for ignored case
1 parent 4924634 commit b9bb341

22 files changed

+192
-189
lines changed

src/CodeGenerator/src/Generator/GeneratorHelper.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,28 +63,28 @@ public static function normalizeName(string $propertyName): string
6363
'SS' => 'Ss',
6464
];
6565
static $ignored = [
66-
'GB' => 'Gb',
67-
'GiB' => 'Gib',
68-
'BFrame' => 'Bframe',
69-
'BReference' => 'Breference',
70-
'BBox' => 'Bbox',
71-
'VCpu' => 'Vcpu',
72-
'IInterval' => 'Iinterval',
73-
'IFrame' => 'Iframe',
74-
'XCoordinate' => 'Xcoordinate',
75-
'YCoordinate' => 'Ycoordinate',
76-
'XOffset' => 'Xoffset',
77-
'YOffset' => 'Yoffset',
78-
'XPosition' => 'Xposition',
79-
'YPosition' => 'Yposition',
66+
'GB',
67+
'GiB',
68+
'BFrame',
69+
'BReference',
70+
'BBox',
71+
'VCpu',
72+
'IInterval',
73+
'IFrame',
74+
'XCoordinate',
75+
'YCoordinate',
76+
'XOffset',
77+
'YOffset',
78+
'XPosition',
79+
'YPosition',
8080
];
8181

8282
$originalPropertyName = $propertyName;
8383
$propertyName = strtr($propertyName, $replacements);
8484

8585
if (preg_match('/[A-Z]{2,}/', $propertyName)) {
86-
$propertyName = strtr($propertyName, $ignored);
87-
if (preg_match('/[A-Z]{2,}/', $propertyName)) {
86+
$propertyNameWithoutIgnored = strtr($propertyName, array_fill_keys($ignored, 'Xx'));
87+
if (preg_match('/[A-Z]{2,}/', $propertyNameWithoutIgnored)) {
8888
throw new \RuntimeException(\sprintf('No camel case property "%s" is not yet implemented', $originalPropertyName));
8989
}
9090
}

src/Service/DynamoDb/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Apply new CodingStandard from latest php-cs-fixer.
1717
- AWS enhancement: Documentation updates.
1818
- Use a more stable sorting for the list of generated region metadata
19+
- change case of `getSizeEstimateRangeGb` method to `getSizeEstimateRangeGb`
1920

2021
## 3.8.0
2122

src/Service/DynamoDb/src/ValueObject/ItemCollectionMetrics.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class ItemCollectionMetrics
2626
*
2727
* @var float[]|null
2828
*/
29-
private $sizeEstimateRangeGb;
29+
private $sizeEstimateRangeGB;
3030

3131
/**
3232
* @param array{
@@ -37,7 +37,7 @@ final class ItemCollectionMetrics
3737
public function __construct(array $input)
3838
{
3939
$this->itemCollectionKey = isset($input['ItemCollectionKey']) ? array_map([AttributeValue::class, 'create'], $input['ItemCollectionKey']) : null;
40-
$this->sizeEstimateRangeGb = $input['SizeEstimateRangeGB'] ?? null;
40+
$this->sizeEstimateRangeGB = $input['SizeEstimateRangeGB'] ?? null;
4141
}
4242

4343
/**
@@ -62,8 +62,8 @@ public function getItemCollectionKey(): array
6262
/**
6363
* @return float[]
6464
*/
65-
public function getSizeEstimateRangeGb(): array
65+
public function getSizeEstimateRangeGB(): array
6666
{
67-
return $this->sizeEstimateRangeGb ?? [];
67+
return $this->sizeEstimateRangeGB ?? [];
6868
}
6969
}

src/Service/Lambda/src/ValueObject/LambdaManagedInstancesCapacityProviderConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class LambdaManagedInstancesCapacityProviderConfig
2828
*
2929
* @var float|null
3030
*/
31-
private $executionEnvironmentMemoryGibPerVcpu;
31+
private $executionEnvironmentMemoryGiBPerVCpu;
3232

3333
/**
3434
* @param array{
@@ -41,7 +41,7 @@ public function __construct(array $input)
4141
{
4242
$this->capacityProviderArn = $input['CapacityProviderArn'] ?? $this->throwException(new InvalidArgument('Missing required field "CapacityProviderArn".'));
4343
$this->perExecutionEnvironmentMaxConcurrency = $input['PerExecutionEnvironmentMaxConcurrency'] ?? null;
44-
$this->executionEnvironmentMemoryGibPerVcpu = $input['ExecutionEnvironmentMemoryGiBPerVCpu'] ?? null;
44+
$this->executionEnvironmentMemoryGiBPerVCpu = $input['ExecutionEnvironmentMemoryGiBPerVCpu'] ?? null;
4545
}
4646

4747
/**
@@ -61,9 +61,9 @@ public function getCapacityProviderArn(): string
6161
return $this->capacityProviderArn;
6262
}
6363

64-
public function getExecutionEnvironmentMemoryGibPerVcpu(): ?float
64+
public function getExecutionEnvironmentMemoryGiBPerVCpu(): ?float
6565
{
66-
return $this->executionEnvironmentMemoryGibPerVcpu;
66+
return $this->executionEnvironmentMemoryGiBPerVCpu;
6767
}
6868

6969
public function getPerExecutionEnvironmentMaxConcurrency(): ?int
@@ -82,7 +82,7 @@ public function requestBody(): array
8282
if (null !== $v = $this->perExecutionEnvironmentMaxConcurrency) {
8383
$payload['PerExecutionEnvironmentMaxConcurrency'] = $v;
8484
}
85-
if (null !== $v = $this->executionEnvironmentMemoryGibPerVcpu) {
85+
if (null !== $v = $this->executionEnvironmentMemoryGiBPerVCpu) {
8686
$payload['ExecutionEnvironmentMemoryGiBPerVCpu'] = $v;
8787
}
8888

src/Service/LocationService/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- Apply new CodingStandard from latest php-cs-fixer.
1212
- AWS enhancement: Documentation updates.
13+
- change case of `getFilterBbox` method to `getFilterBBox` and `getRouteBbox` method to `getRouteBBox`
1314

1415
## 1.1.2
1516

src/Service/LocationService/src/Input/SearchPlaceIndexForTextRequest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class SearchPlaceIndexForTextRequest extends Input
5858
*
5959
* @var float[]|null
6060
*/
61-
private $filterBbox;
61+
private $filterBBox;
6262

6363
/**
6464
* An optional parameter that limits the search results by returning only places that are in a specified list of
@@ -145,7 +145,7 @@ public function __construct(array $input = [])
145145
$this->indexName = $input['IndexName'] ?? null;
146146
$this->text = $input['Text'] ?? null;
147147
$this->biasPosition = $input['BiasPosition'] ?? null;
148-
$this->filterBbox = $input['FilterBBox'] ?? null;
148+
$this->filterBBox = $input['FilterBBox'] ?? null;
149149
$this->filterCountries = $input['FilterCountries'] ?? null;
150150
$this->maxResults = $input['MaxResults'] ?? null;
151151
$this->language = $input['Language'] ?? null;
@@ -184,9 +184,9 @@ public function getBiasPosition(): array
184184
/**
185185
* @return float[]
186186
*/
187-
public function getFilterBbox(): array
187+
public function getFilterBBox(): array
188188
{
189-
return $this->filterBbox ?? [];
189+
return $this->filterBBox ?? [];
190190
}
191191

192192
/**
@@ -276,9 +276,9 @@ public function setBiasPosition(array $value): self
276276
/**
277277
* @param float[] $value
278278
*/
279-
public function setFilterBbox(array $value): self
279+
public function setFilterBBox(array $value): self
280280
{
281-
$this->filterBbox = $value;
281+
$this->filterBBox = $value;
282282

283283
return $this;
284284
}
@@ -354,7 +354,7 @@ private function requestBody(): array
354354
$payload['BiasPosition'][$index] = $listValue;
355355
}
356356
}
357-
if (null !== $v = $this->filterBbox) {
357+
if (null !== $v = $this->filterBBox) {
358358
$index = -1;
359359
$payload['FilterBBox'] = [];
360360
foreach ($v as $listValue) {

src/Service/LocationService/src/ValueObject/CalculateRouteSummary.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class CalculateRouteSummary
2626
*
2727
* @var float[]
2828
*/
29-
private $routeBbox;
29+
private $routeBBox;
3030

3131
/**
3232
* The data provider of traffic and road network data used to calculate the route. Indicates one of the available
@@ -79,7 +79,7 @@ final class CalculateRouteSummary
7979
*/
8080
public function __construct(array $input)
8181
{
82-
$this->routeBbox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
82+
$this->routeBBox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
8383
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
8484
$this->distance = $input['Distance'] ?? $this->throwException(new InvalidArgument('Missing required field "Distance".'));
8585
$this->durationSeconds = $input['DurationSeconds'] ?? $this->throwException(new InvalidArgument('Missing required field "DurationSeconds".'));
@@ -126,9 +126,9 @@ public function getDurationSeconds(): float
126126
/**
127127
* @return float[]
128128
*/
129-
public function getRouteBbox(): array
129+
public function getRouteBBox(): array
130130
{
131-
return $this->routeBbox;
131+
return $this->routeBBox;
132132
}
133133

134134
/**

src/Service/LocationService/src/ValueObject/SearchPlaceIndexForTextSummary.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class SearchPlaceIndexForTextSummary
3333
*
3434
* @var float[]|null
3535
*/
36-
private $filterBbox;
36+
private $filterBBox;
3737

3838
/**
3939
* Contains the optional country filter specified in the request.
@@ -56,7 +56,7 @@ final class SearchPlaceIndexForTextSummary
5656
*
5757
* @var float[]|null
5858
*/
59-
private $resultBbox;
59+
private $resultBBox;
6060

6161
/**
6262
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the
@@ -108,10 +108,10 @@ public function __construct(array $input)
108108
{
109109
$this->text = $input['Text'] ?? $this->throwException(new InvalidArgument('Missing required field "Text".'));
110110
$this->biasPosition = $input['BiasPosition'] ?? null;
111-
$this->filterBbox = $input['FilterBBox'] ?? null;
111+
$this->filterBBox = $input['FilterBBox'] ?? null;
112112
$this->filterCountries = $input['FilterCountries'] ?? null;
113113
$this->maxResults = $input['MaxResults'] ?? null;
114-
$this->resultBbox = $input['ResultBBox'] ?? null;
114+
$this->resultBBox = $input['ResultBBox'] ?? null;
115115
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
116116
$this->language = $input['Language'] ?? null;
117117
$this->filterCategories = $input['FilterCategories'] ?? null;
@@ -151,9 +151,9 @@ public function getDataSource(): string
151151
/**
152152
* @return float[]
153153
*/
154-
public function getFilterBbox(): array
154+
public function getFilterBBox(): array
155155
{
156-
return $this->filterBbox ?? [];
156+
return $this->filterBBox ?? [];
157157
}
158158

159159
/**
@@ -185,9 +185,9 @@ public function getMaxResults(): ?int
185185
/**
186186
* @return float[]
187187
*/
188-
public function getResultBbox(): array
188+
public function getResultBBox(): array
189189
{
190-
return $this->resultBbox ?? [];
190+
return $this->resultBBox ?? [];
191191
}
192192

193193
public function getText(): string

src/Service/MediaConvert/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
### Changed
1717

1818
- Apply new CodingStandard from latest php-cs-fixer.
19+
- Change case of of various properties.
1920

2021
## 1.11.0
2122

src/Service/MediaConvert/src/ValueObject/Av1Settings.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ final class Av1Settings
112112
*
113113
* @var int|null
114114
*/
115-
private $numberBframesBetweenReferenceFrames;
115+
private $numberBFramesBetweenReferenceFrames;
116116

117117
/**
118118
* Optionally choose one or more per frame metric reports to generate along with your output. You can use these metrics
@@ -203,7 +203,7 @@ public function __construct(array $input)
203203
$this->framerateNumerator = $input['FramerateNumerator'] ?? null;
204204
$this->gopSize = $input['GopSize'] ?? null;
205205
$this->maxBitrate = $input['MaxBitrate'] ?? null;
206-
$this->numberBframesBetweenReferenceFrames = $input['NumberBFramesBetweenReferenceFrames'] ?? null;
206+
$this->numberBFramesBetweenReferenceFrames = $input['NumberBFramesBetweenReferenceFrames'] ?? null;
207207
$this->perFrameMetrics = $input['PerFrameMetrics'] ?? null;
208208
$this->qvbrSettings = isset($input['QvbrSettings']) ? Av1QvbrSettings::create($input['QvbrSettings']) : null;
209209
$this->rateControlMode = $input['RateControlMode'] ?? null;
@@ -295,9 +295,9 @@ public function getMaxBitrate(): ?int
295295
return $this->maxBitrate;
296296
}
297297

298-
public function getNumberBframesBetweenReferenceFrames(): ?int
298+
public function getNumberBFramesBetweenReferenceFrames(): ?int
299299
{
300-
return $this->numberBframesBetweenReferenceFrames;
300+
return $this->numberBFramesBetweenReferenceFrames;
301301
}
302302

303303
/**
@@ -382,7 +382,7 @@ public function requestBody(): array
382382
if (null !== $v = $this->maxBitrate) {
383383
$payload['maxBitrate'] = $v;
384384
}
385-
if (null !== $v = $this->numberBframesBetweenReferenceFrames) {
385+
if (null !== $v = $this->numberBFramesBetweenReferenceFrames) {
386386
$payload['numberBFramesBetweenReferenceFrames'] = $v;
387387
}
388388
if (null !== $v = $this->perFrameMetrics) {

0 commit comments

Comments
 (0)