Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/CodeGenerator/src/Generator/GeneratorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,28 @@ public static function normalizeName(string $propertyName): string
'SS' => 'Ss',
];
static $ignored = [
'GB' => 'Gb',
'GiB' => 'Gib',
'BFrame' => 'Bframe',
'BReference' => 'Breference',
'BBox' => 'Bbox',
'VCpu' => 'Vcpu',
'IInterval' => 'Iinterval',
'IFrame' => 'Iframe',
'XCoordinate' => 'Xcoordinate',
'YCoordinate' => 'Ycoordinate',
'XOffset' => 'Xoffset',
'YOffset' => 'Yoffset',
'XPosition' => 'Xposition',
'YPosition' => 'Yposition',
'GB',
'GiB',
'BFrame',
'BReference',
'BBox',
'VCpu',
'IInterval',
'IFrame',
'XCoordinate',
'YCoordinate',
'XOffset',
'YOffset',
'XPosition',
'YPosition',
];

$originalPropertyName = $propertyName;
$propertyName = strtr($propertyName, $replacements);

if (preg_match('/[A-Z]{2,}/', $propertyName)) {
$propertyName = strtr($propertyName, $ignored);
if (preg_match('/[A-Z]{2,}/', $propertyName)) {
$propertyNameWithoutIgnored = strtr($propertyName, array_fill_keys($ignored, ''));
if (preg_match('/[A-Z]{2,}/', $propertyNameWithoutIgnored)) {
throw new \RuntimeException(\sprintf('No camel case property "%s" is not yet implemented', $originalPropertyName));
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Service/DynamoDb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

- Apply new CodingStandard from latest php-cs-fixer.
- AWS enhancement: Documentation updates.
- change case of `getSizeEstimateRangeGb` method to `getSizeEstimateRangeGb`

## 3.8.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class ItemCollectionMetrics
*
* @var float[]|null
*/
private $sizeEstimateRangeGb;
private $sizeEstimateRangeGB;

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

/**
Expand All @@ -62,8 +62,8 @@ public function getItemCollectionKey(): array
/**
* @return float[]
*/
public function getSizeEstimateRangeGb(): array
public function getSizeEstimateRangeGB(): array
{
return $this->sizeEstimateRangeGb ?? [];
return $this->sizeEstimateRangeGB ?? [];
}
}
1 change: 1 addition & 0 deletions src/Service/LocationService/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

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

## 1.1.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final class SearchPlaceIndexForTextRequest extends Input
*
* @var float[]|null
*/
private $filterBbox;
private $filterBBox;

/**
* An optional parameter that limits the search results by returning only places that are in a specified list of
Expand Down Expand Up @@ -145,7 +145,7 @@ public function __construct(array $input = [])
$this->indexName = $input['IndexName'] ?? null;
$this->text = $input['Text'] ?? null;
$this->biasPosition = $input['BiasPosition'] ?? null;
$this->filterBbox = $input['FilterBBox'] ?? null;
$this->filterBBox = $input['FilterBBox'] ?? null;
$this->filterCountries = $input['FilterCountries'] ?? null;
$this->maxResults = $input['MaxResults'] ?? null;
$this->language = $input['Language'] ?? null;
Expand Down Expand Up @@ -184,9 +184,9 @@ public function getBiasPosition(): array
/**
* @return float[]
*/
public function getFilterBbox(): array
public function getFilterBBox(): array
{
return $this->filterBbox ?? [];
return $this->filterBBox ?? [];
}

/**
Expand Down Expand Up @@ -276,9 +276,9 @@ public function setBiasPosition(array $value): self
/**
* @param float[] $value
*/
public function setFilterBbox(array $value): self
public function setFilterBBox(array $value): self
{
$this->filterBbox = $value;
$this->filterBBox = $value;

return $this;
}
Expand Down Expand Up @@ -354,7 +354,7 @@ private function requestBody(): array
$payload['BiasPosition'][$index] = $listValue;
}
}
if (null !== $v = $this->filterBbox) {
if (null !== $v = $this->filterBBox) {
$index = -1;
$payload['FilterBBox'] = [];
foreach ($v as $listValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class CalculateRouteSummary
*
* @var float[]
*/
private $routeBbox;
private $routeBBox;

/**
* The data provider of traffic and road network data used to calculate the route. Indicates one of the available
Expand Down Expand Up @@ -79,7 +79,7 @@ final class CalculateRouteSummary
*/
public function __construct(array $input)
{
$this->routeBbox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
$this->routeBBox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
$this->distance = $input['Distance'] ?? $this->throwException(new InvalidArgument('Missing required field "Distance".'));
$this->durationSeconds = $input['DurationSeconds'] ?? $this->throwException(new InvalidArgument('Missing required field "DurationSeconds".'));
Expand Down Expand Up @@ -126,9 +126,9 @@ public function getDurationSeconds(): float
/**
* @return float[]
*/
public function getRouteBbox(): array
public function getRouteBBox(): array
{
return $this->routeBbox;
return $this->routeBBox;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class SearchPlaceIndexForTextSummary
*
* @var float[]|null
*/
private $filterBbox;
private $filterBBox;

/**
* Contains the optional country filter specified in the request.
Expand All @@ -56,7 +56,7 @@ final class SearchPlaceIndexForTextSummary
*
* @var float[]|null
*/
private $resultBbox;
private $resultBBox;

/**
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the
Expand Down Expand Up @@ -108,10 +108,10 @@ public function __construct(array $input)
{
$this->text = $input['Text'] ?? $this->throwException(new InvalidArgument('Missing required field "Text".'));
$this->biasPosition = $input['BiasPosition'] ?? null;
$this->filterBbox = $input['FilterBBox'] ?? null;
$this->filterBBox = $input['FilterBBox'] ?? null;
$this->filterCountries = $input['FilterCountries'] ?? null;
$this->maxResults = $input['MaxResults'] ?? null;
$this->resultBbox = $input['ResultBBox'] ?? null;
$this->resultBBox = $input['ResultBBox'] ?? null;
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
$this->language = $input['Language'] ?? null;
$this->filterCategories = $input['FilterCategories'] ?? null;
Expand Down Expand Up @@ -151,9 +151,9 @@ public function getDataSource(): string
/**
* @return float[]
*/
public function getFilterBbox(): array
public function getFilterBBox(): array
{
return $this->filterBbox ?? [];
return $this->filterBBox ?? [];
}

/**
Expand Down Expand Up @@ -185,9 +185,9 @@ public function getMaxResults(): ?int
/**
* @return float[]
*/
public function getResultBbox(): array
public function getResultBBox(): array
{
return $this->resultBbox ?? [];
return $this->resultBBox ?? [];
}

public function getText(): string
Expand Down
1 change: 1 addition & 0 deletions src/Service/MediaConvert/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
### Changed

- Apply new CodingStandard from latest php-cs-fixer.
- Change case of of various properties.

## 1.11.0

Expand Down
10 changes: 5 additions & 5 deletions src/Service/MediaConvert/src/ValueObject/Av1Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ final class Av1Settings
*
* @var int|null
*/
private $numberBframesBetweenReferenceFrames;
private $numberBFramesBetweenReferenceFrames;

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

public function getNumberBframesBetweenReferenceFrames(): ?int
public function getNumberBFramesBetweenReferenceFrames(): ?int
{
return $this->numberBframesBetweenReferenceFrames;
return $this->numberBFramesBetweenReferenceFrames;
}

/**
Expand Down Expand Up @@ -382,7 +382,7 @@ public function requestBody(): array
if (null !== $v = $this->maxBitrate) {
$payload['maxBitrate'] = $v;
}
if (null !== $v = $this->numberBframesBetweenReferenceFrames) {
if (null !== $v = $this->numberBFramesBetweenReferenceFrames) {
$payload['numberBFramesBetweenReferenceFrames'] = $v;
}
if (null !== $v = $this->perFrameMetrics) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ final class BurninDestinationSettings
*
* @var int|null
*/
private $shadowXoffset;
private $shadowXOffset;

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

/**
* To use the available style, color, and position information from your input captions: Set Style passthrough to
Expand Down Expand Up @@ -243,7 +243,7 @@ final class BurninDestinationSettings
*
* @var int|null
*/
private $xposition;
private $xPosition;

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

/**
* @param array{
Expand Down Expand Up @@ -306,12 +306,12 @@ public function __construct(array $input)
$this->removeRubyReserveAttributes = $input['RemoveRubyReserveAttributes'] ?? null;
$this->shadowColor = $input['ShadowColor'] ?? null;
$this->shadowOpacity = $input['ShadowOpacity'] ?? null;
$this->shadowXoffset = $input['ShadowXOffset'] ?? null;
$this->shadowYoffset = $input['ShadowYOffset'] ?? null;
$this->shadowXOffset = $input['ShadowXOffset'] ?? null;
$this->shadowYOffset = $input['ShadowYOffset'] ?? null;
$this->stylePassthrough = $input['StylePassthrough'] ?? null;
$this->teletextSpacing = $input['TeletextSpacing'] ?? null;
$this->xposition = $input['XPosition'] ?? null;
$this->yposition = $input['YPosition'] ?? null;
$this->xPosition = $input['XPosition'] ?? null;
$this->yPosition = $input['YPosition'] ?? null;
}

/**
Expand Down Expand Up @@ -476,14 +476,14 @@ public function getShadowOpacity(): ?int
return $this->shadowOpacity;
}

public function getShadowXoffset(): ?int
public function getShadowXOffset(): ?int
{
return $this->shadowXoffset;
return $this->shadowXOffset;
}

public function getShadowYoffset(): ?int
public function getShadowYOffset(): ?int
{
return $this->shadowYoffset;
return $this->shadowYOffset;
}

/**
Expand All @@ -502,14 +502,14 @@ public function getTeletextSpacing(): ?string
return $this->teletextSpacing;
}

public function getXposition(): ?int
public function getXPosition(): ?int
{
return $this->xposition;
return $this->xPosition;
}

public function getYposition(): ?int
public function getYPosition(): ?int
{
return $this->yposition;
return $this->yPosition;
}

/**
Expand Down Expand Up @@ -605,10 +605,10 @@ public function requestBody(): array
if (null !== $v = $this->shadowOpacity) {
$payload['shadowOpacity'] = $v;
}
if (null !== $v = $this->shadowXoffset) {
if (null !== $v = $this->shadowXOffset) {
$payload['shadowXOffset'] = $v;
}
if (null !== $v = $this->shadowYoffset) {
if (null !== $v = $this->shadowYOffset) {
$payload['shadowYOffset'] = $v;
}
if (null !== $v = $this->stylePassthrough) {
Expand All @@ -623,10 +623,10 @@ public function requestBody(): array
}
$payload['teletextSpacing'] = $v;
}
if (null !== $v = $this->xposition) {
if (null !== $v = $this->xPosition) {
$payload['xPosition'] = $v;
}
if (null !== $v = $this->yposition) {
if (null !== $v = $this->yPosition) {
$payload['yPosition'] = $v;
}

Expand Down
Loading