Skip to content

Commit 328ca7e

Browse files
committed
Code formatting
1 parent cf47ae0 commit 328ca7e

File tree

13 files changed

+34
-35
lines changed

13 files changed

+34
-35
lines changed

src/Adyen/Model/BalanceControl/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach($data as $property => $value) {
84+
foreach ($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,7 +117,9 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) return $timestamp;
120+
if (!is_string($timestamp)) {
121+
return $timestamp;
122+
}
121123

122124
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
123125
}

src/Adyen/Model/LegalEntityManagement/Attachment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function setContent($content)
335335
* Gets contentType
336336
*
337337
* @return string|null
338-
* @deprecated since Legal Entity Management API v1.
338+
* @deprecated since Legal Entity Management API v1.
339339
*/
340340
public function getContentType()
341341
{
@@ -348,7 +348,7 @@ public function getContentType()
348348
* @param string|null $contentType The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.
349349
*
350350
* @return self
351-
* @deprecated since Legal Entity Management API v1.
351+
* @deprecated since Legal Entity Management API v1.
352352
*/
353353
public function setContentType($contentType)
354354
{
@@ -361,7 +361,7 @@ public function setContentType($contentType)
361361
* Gets filename
362362
*
363363
* @return string|null
364-
* @deprecated since Legal Entity Management API v1.
364+
* @deprecated since Legal Entity Management API v1.
365365
*/
366366
public function getFilename()
367367
{
@@ -374,7 +374,7 @@ public function getFilename()
374374
* @param string|null $filename The name of the file including the file extension.
375375
*
376376
* @return self
377-
* @deprecated since Legal Entity Management API v1.
377+
* @deprecated since Legal Entity Management API v1.
378378
*/
379379
public function setFilename($filename)
380380
{

src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function setAccountIdentification($accountIdentification)
332332
* Gets accountType
333333
*
334334
* @return string|null
335-
* @deprecated since Legal Entity Management API v2.
335+
* @deprecated since Legal Entity Management API v2.
336336
*/
337337
public function getAccountType()
338338
{
@@ -345,7 +345,7 @@ public function getAccountType()
345345
* @param string|null $accountType The type of bank account.
346346
*
347347
* @return self
348-
* @deprecated since Legal Entity Management API v2.
348+
* @deprecated since Legal Entity Management API v2.
349349
*/
350350
public function setAccountType($accountType)
351351
{

src/Adyen/Model/LegalEntityManagement/Document.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public function setDescription($description)
523523
* Gets expiryDate
524524
*
525525
* @return string|null
526-
* @deprecated since Legal Entity Management API v1.
526+
* @deprecated since Legal Entity Management API v1.
527527
*/
528528
public function getExpiryDate()
529529
{
@@ -536,7 +536,7 @@ public function getExpiryDate()
536536
* @param string|null $expiryDate The expiry date of the document, in YYYY-MM-DD format.
537537
*
538538
* @return self
539-
* @deprecated since Legal Entity Management API v1.
539+
* @deprecated since Legal Entity Management API v1.
540540
*/
541541
public function setExpiryDate($expiryDate)
542542
{
@@ -597,7 +597,7 @@ public function setId($id)
597597
* Gets issuerCountry
598598
*
599599
* @return string|null
600-
* @deprecated since Legal Entity Management API v1.
600+
* @deprecated since Legal Entity Management API v1.
601601
*/
602602
public function getIssuerCountry()
603603
{
@@ -610,7 +610,7 @@ public function getIssuerCountry()
610610
* @param string|null $issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
611611
*
612612
* @return self
613-
* @deprecated since Legal Entity Management API v1.
613+
* @deprecated since Legal Entity Management API v1.
614614
*/
615615
public function setIssuerCountry($issuerCountry)
616616
{
@@ -623,7 +623,7 @@ public function setIssuerCountry($issuerCountry)
623623
* Gets issuerState
624624
*
625625
* @return string|null
626-
* @deprecated since Legal Entity Management API v1.
626+
* @deprecated since Legal Entity Management API v1.
627627
*/
628628
public function getIssuerState()
629629
{
@@ -636,7 +636,7 @@ public function getIssuerState()
636636
* @param string|null $issuerState The state or province where the document was issued (AU only).
637637
*
638638
* @return self
639-
* @deprecated since Legal Entity Management API v1.
639+
* @deprecated since Legal Entity Management API v1.
640640
*/
641641
public function setIssuerState($issuerState)
642642
{

src/Adyen/Model/LegalEntityManagement/IdentificationData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function setExpiryDate($expiryDate)
400400
* Gets issuerCountry
401401
*
402402
* @return string|null
403-
* @deprecated since Legal Entity Management API v1.
403+
* @deprecated since Legal Entity Management API v1.
404404
*/
405405
public function getIssuerCountry()
406406
{
@@ -413,7 +413,7 @@ public function getIssuerCountry()
413413
* @param string|null $issuerCountry The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
414414
*
415415
* @return self
416-
* @deprecated since Legal Entity Management API v1.
416+
* @deprecated since Legal Entity Management API v1.
417417
*/
418418
public function setIssuerCountry($issuerCountry)
419419
{

src/Adyen/Model/LegalEntityManagement/ObjectSerializer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach($data as $property => $value) {
84+
foreach ($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,7 +117,9 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) return $timestamp;
120+
if (!is_string($timestamp)) {
121+
return $timestamp;
122+
}
121123

122124
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
123125
}
@@ -240,8 +242,7 @@ public static function deserialize($data, $class, $httpHeaders = null)
240242
/** @var \Psr\Http\Message\StreamInterface $data */
241243

242244
// determine file name
243-
if (
244-
is_array($httpHeaders)
245+
if (is_array($httpHeaders)
245246
&& array_key_exists('Content-Disposition', $httpHeaders)
246247
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
247248
) {

src/Adyen/Model/Transfers/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach($data as $property => $value) {
84+
foreach ($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,7 +117,9 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) return $timestamp;
120+
if (!is_string($timestamp)) {
121+
return $timestamp;
122+
}
121123

122124
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
123125
}

src/Adyen/Service/BalanceControlApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(Client $client)
4242
/**
4343
* Start a balance transfer
4444
*
45-
* @deprecated since Adyen Balance Control API v1.
45+
* @deprecated since Adyen Balance Control API v1.
4646
* @param \Adyen\Model\BalanceControl\BalanceTransferRequest $balanceTransferRequest
4747
* @param array|null $requestOptions
4848
* @return \Adyen\Model\BalanceControl\BalanceTransferResponse

src/Adyen/Service/LegalEntityManagement/BusinessLinesApi.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ public function createBusinessLine(\Adyen\Model\LegalEntityManagement\BusinessLi
5959
*
6060
* @param string $id
6161
* @param array|null $requestOptions
62-
62+
6363
* @throws AdyenException
6464
*/
6565
public function deleteBusinessLine(string $id, ?array $requestOptions = null)
6666
{
6767
$endpoint = $this->baseURL . str_replace(['{id}'], [$id], "/businessLines/{id}");
6868
$this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions);
69-
7069
}
7170

7271
/**

src/Adyen/Service/LegalEntityManagement/DocumentsApi.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ public function __construct(Client $client)
4444
*
4545
* @param string $id
4646
* @param array|null $requestOptions
47-
47+
4848
* @throws AdyenException
4949
*/
5050
public function deleteDocument(string $id, ?array $requestOptions = null)
5151
{
5252
$endpoint = $this->baseURL . str_replace(['{id}'], [$id], "/documents/{id}");
5353
$this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions);
54-
5554
}
5655

5756
/**

0 commit comments

Comments
 (0)