Skip to content

Commit 83d140e

Browse files
authored
Merge pull request #11 from stof/fix_coding_standards
Fix coding standards
2 parents 5beb7c7 + 671cfd4 commit 83d140e

5 files changed

+9
-9
lines changed

src/AmazonIncentivesClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,6 @@ protected function getEndpointMetadata(?string $region): array
402402
];
403403
}
404404

405-
throw new UnsupportedRegion(sprintf('The region "%s" is not supported by "AmazonIncentives".', $region));
405+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "AmazonIncentives".', $region));
406406
}
407407
}

src/Input/CancelGiftCardRequest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ public function setPartnerId(?string $value): self
125125
private function requestBody(\DOMNode $node, \DOMDocument $document): void
126126
{
127127
if (null === $v = $this->creationRequestId) {
128-
throw new InvalidArgument(sprintf('Missing parameter "creationRequestId" for "%s". The value cannot be null.', __CLASS__));
128+
throw new InvalidArgument(\sprintf('Missing parameter "creationRequestId" for "%s". The value cannot be null.', __CLASS__));
129129
}
130130
$node->appendChild($document->createElement('creationRequestId', $v));
131131
if (null === $v = $this->partnerId) {
132-
throw new InvalidArgument(sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
132+
throw new InvalidArgument(\sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
133133
}
134134
$node->appendChild($document->createElement('partnerId', $v));
135135
if (null === $v = $this->gcId) {
136-
throw new InvalidArgument(sprintf('Missing parameter "gcId" for "%s". The value cannot be null.', __CLASS__));
136+
throw new InvalidArgument(\sprintf('Missing parameter "gcId" for "%s". The value cannot be null.', __CLASS__));
137137
}
138138
$node->appendChild($document->createElement('gcId', $v));
139139
}

src/Input/CreateGiftCardRequest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ public function setValue(?MoneyAmount $value): self
174174
private function requestBody(\DOMNode $node, \DOMDocument $document): void
175175
{
176176
if (null === $v = $this->creationRequestId) {
177-
throw new InvalidArgument(sprintf('Missing parameter "creationRequestId" for "%s". The value cannot be null.', __CLASS__));
177+
throw new InvalidArgument(\sprintf('Missing parameter "creationRequestId" for "%s". The value cannot be null.', __CLASS__));
178178
}
179179
$node->appendChild($document->createElement('creationRequestId', $v));
180180
if (null === $v = $this->partnerId) {
181-
throw new InvalidArgument(sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
181+
throw new InvalidArgument(\sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
182182
}
183183
$node->appendChild($document->createElement('partnerId', $v));
184184
if (null === $v = $this->value) {
185-
throw new InvalidArgument(sprintf('Missing parameter "value" for "%s". The value cannot be null.', __CLASS__));
185+
throw new InvalidArgument(\sprintf('Missing parameter "value" for "%s". The value cannot be null.', __CLASS__));
186186
}
187187

188188
$node->appendChild($child = $document->createElement('value'));

src/Input/GetAvailableFundsRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function setPartnerId(?string $value): self
8181
private function requestBody(\DOMNode $node, \DOMDocument $document): void
8282
{
8383
if (null === $v = $this->partnerId) {
84-
throw new InvalidArgument(sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
84+
throw new InvalidArgument(\sprintf('Missing parameter "partnerId" for "%s". The value cannot be null.', __CLASS__));
8585
}
8686
$node->appendChild($document->createElement('partnerId', $v));
8787
}

src/ValueObject/MoneyAmount.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function requestBody(\DOMElement $node, \DOMDocument $document): void
6262
$node->appendChild($document->createElement('amount', (string) $v));
6363
$v = $this->currencyCode;
6464
if (!CurrencyCode::exists($v)) {
65-
throw new InvalidArgument(sprintf('Invalid parameter "currencyCode" for "%s". The value "%s" is not a valid "CurrencyCode".', __CLASS__, $v));
65+
throw new InvalidArgument(\sprintf('Invalid parameter "currencyCode" for "%s". The value "%s" is not a valid "CurrencyCode".', __CLASS__, $v));
6666
}
6767
$node->appendChild($document->createElement('currencyCode', $v));
6868
}

0 commit comments

Comments
 (0)