Skip to content

Commit 3ba981c

Browse files
committed
Fix camel case format for ignored case
1 parent 4aee140 commit 3ba981c

21 files changed

+188
-182
lines changed

src/CodeGenerator/src/Generator/GeneratorHelper.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,26 +59,26 @@ public static function normalizeName(string $propertyName): string
5959
'SS' => 'Ss',
6060
];
6161
static $ignored = [
62-
'GB' => 'Gb',
63-
'BFrame' => 'Bframe',
64-
'BReference' => 'Breference',
65-
'BBox' => 'Bbox',
66-
'IInterval' => 'Iinterval',
67-
'IFrame' => 'Iframe',
68-
'XCoordinate' => 'Xcoordinate',
69-
'YCoordinate' => 'Ycoordinate',
70-
'XOffset' => 'Xoffset',
71-
'YOffset' => 'Yoffset',
72-
'XPosition' => 'Xposition',
73-
'YPosition' => 'Yposition',
62+
'GB',
63+
'BFrame',
64+
'BReference',
65+
'BBox',
66+
'IInterval',
67+
'IFrame',
68+
'XCoordinate',
69+
'YCoordinate',
70+
'XOffset',
71+
'YOffset',
72+
'XPosition',
73+
'YPosition',
7474
];
7575

7676
$originalPropertyName = $propertyName;
7777
$propertyName = strtr($propertyName, $replacements);
7878

7979
if (preg_match('/[A-Z]{2,}/', $propertyName)) {
80-
$propertyName = strtr($propertyName, $ignored);
81-
if (preg_match('/[A-Z]{2,}/', $propertyName)) {
80+
$propertyNameWithoutIgnored = strtr($propertyName, array_fill_keys($ignored, ''));
81+
if (preg_match('/[A-Z]{2,}/', $propertyNameWithoutIgnored)) {
8282
throw new \RuntimeException(\sprintf('No camel case property "%s" is not yet implemented', $originalPropertyName));
8383
}
8484
}

src/Service/DynamoDb/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- AWS api-change: Added `us-isob-west-1` region
88

9+
### Changed
10+
11+
- change case of `getSizeEstimateRangeGb` method to `getSizeEstimateRangeGb`
12+
913
### Dependency bumped
1014

1115
- Drop support for PHP versions lower than 8.2

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/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
@@ -15,6 +15,7 @@
1515
### Changed
1616

1717
- Apply new CodingStandard from latest php-cs-fixer.
18+
- Change case of of various properties.
1819

1920
## 1.11.0
2021

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) {

src/Service/MediaConvert/src/ValueObject/BurninDestinationSettings.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ final class BurninDestinationSettings
203203
*
204204
* @var int|null
205205
*/
206-
private $shadowXoffset;
206+
private $shadowXOffset;
207207

208208
/**
209209
* Specify the vertical offset of the shadow relative to the captions in pixels. A value of -2 would result in a shadow
@@ -212,7 +212,7 @@ final class BurninDestinationSettings
212212
*
213213
* @var int|null
214214
*/
215-
private $shadowYoffset;
215+
private $shadowYOffset;
216216

217217
/**
218218
* To use the available style, color, and position information from your input captions: Set Style passthrough to
@@ -243,7 +243,7 @@ final class BurninDestinationSettings
243243
*
244244
* @var int|null
245245
*/
246-
private $xposition;
246+
private $xPosition;
247247

248248
/**
249249
* Specify the vertical position of the captions, relative to the top of the output in pixels. A value of 10 would
@@ -252,7 +252,7 @@ final class BurninDestinationSettings
252252
*
253253
* @var int|null
254254
*/
255-
private $yposition;
255+
private $yPosition;
256256

257257
/**
258258
* @param array{
@@ -306,12 +306,12 @@ public function __construct(array $input)
306306
$this->removeRubyReserveAttributes = $input['RemoveRubyReserveAttributes'] ?? null;
307307
$this->shadowColor = $input['ShadowColor'] ?? null;
308308
$this->shadowOpacity = $input['ShadowOpacity'] ?? null;
309-
$this->shadowXoffset = $input['ShadowXOffset'] ?? null;
310-
$this->shadowYoffset = $input['ShadowYOffset'] ?? null;
309+
$this->shadowXOffset = $input['ShadowXOffset'] ?? null;
310+
$this->shadowYOffset = $input['ShadowYOffset'] ?? null;
311311
$this->stylePassthrough = $input['StylePassthrough'] ?? null;
312312
$this->teletextSpacing = $input['TeletextSpacing'] ?? null;
313-
$this->xposition = $input['XPosition'] ?? null;
314-
$this->yposition = $input['YPosition'] ?? null;
313+
$this->xPosition = $input['XPosition'] ?? null;
314+
$this->yPosition = $input['YPosition'] ?? null;
315315
}
316316

317317
/**
@@ -476,14 +476,14 @@ public function getShadowOpacity(): ?int
476476
return $this->shadowOpacity;
477477
}
478478

479-
public function getShadowXoffset(): ?int
479+
public function getShadowXOffset(): ?int
480480
{
481-
return $this->shadowXoffset;
481+
return $this->shadowXOffset;
482482
}
483483

484-
public function getShadowYoffset(): ?int
484+
public function getShadowYOffset(): ?int
485485
{
486-
return $this->shadowYoffset;
486+
return $this->shadowYOffset;
487487
}
488488

489489
/**
@@ -502,14 +502,14 @@ public function getTeletextSpacing(): ?string
502502
return $this->teletextSpacing;
503503
}
504504

505-
public function getXposition(): ?int
505+
public function getXPosition(): ?int
506506
{
507-
return $this->xposition;
507+
return $this->xPosition;
508508
}
509509

510-
public function getYposition(): ?int
510+
public function getYPosition(): ?int
511511
{
512-
return $this->yposition;
512+
return $this->yPosition;
513513
}
514514

515515
/**
@@ -605,10 +605,10 @@ public function requestBody(): array
605605
if (null !== $v = $this->shadowOpacity) {
606606
$payload['shadowOpacity'] = $v;
607607
}
608-
if (null !== $v = $this->shadowXoffset) {
608+
if (null !== $v = $this->shadowXOffset) {
609609
$payload['shadowXOffset'] = $v;
610610
}
611-
if (null !== $v = $this->shadowYoffset) {
611+
if (null !== $v = $this->shadowYOffset) {
612612
$payload['shadowYOffset'] = $v;
613613
}
614614
if (null !== $v = $this->stylePassthrough) {
@@ -623,10 +623,10 @@ public function requestBody(): array
623623
}
624624
$payload['teletextSpacing'] = $v;
625625
}
626-
if (null !== $v = $this->xposition) {
626+
if (null !== $v = $this->xPosition) {
627627
$payload['xPosition'] = $v;
628628
}
629-
if (null !== $v = $this->yposition) {
629+
if (null !== $v = $this->yPosition) {
630630
$payload['yPosition'] = $v;
631631
}
632632

0 commit comments

Comments
 (0)