Skip to content

Commit dc8f45f

Browse files
AdyenAutomationBotAdyenAutomationBot
AdyenAutomationBot
authored and
AdyenAutomationBot
committed
style(fmt): code formatted
1 parent 012ee6d commit dc8f45f

File tree

57 files changed

+182
-182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+182
-182
lines changed

src/Adyen/Model/AcsWebhooks/ObjectSerializer.php

+5-4
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/BalanceControl/ObjectSerializer.php

+5-4
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/BalancePlatform/BalanceWebhookSettingsResponse.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
namespace Adyen\Model\BalancePlatform;
17+
1718
use Adyen\Model\BalancePlatform\ObjectSerializer;
1819

1920
/**

src/Adyen/Model/BalancePlatform/CapabilitySettings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function getAmountPerIndustry()
358358
/**
359359
* Sets amountPerIndustry
360360
*
361-
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
361+
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
362362
*
363363
* @return self
364364
*/
@@ -382,7 +382,7 @@ public function getAuthorizedCardUsers()
382382
/**
383383
* Sets authorizedCardUsers
384384
*
385-
* @param bool|null $authorizedCardUsers
385+
* @param bool|null $authorizedCardUsers
386386
*
387387
* @return self
388388
*/
@@ -406,7 +406,7 @@ public function getFundingSource()
406406
/**
407407
* Sets fundingSource
408408
*
409-
* @param string[]|null $fundingSource
409+
* @param string[]|null $fundingSource
410410
*
411411
* @return self
412412
*/
@@ -439,7 +439,7 @@ public function getInterval()
439439
/**
440440
* Sets interval
441441
*
442-
* @param string|null $interval
442+
* @param string|null $interval
443443
*
444444
* @return self
445445
*/

src/Adyen/Model/BalancePlatform/ObjectSerializer.php

+5-4
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/BalancePlatform/SettingType.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
namespace Adyen\Model\BalancePlatform;
17+
1718
use Adyen\Model\BalancePlatform\ObjectSerializer;
1819

1920
/**
@@ -42,4 +43,3 @@ public static function getAllowableEnumValues()
4243
];
4344
}
4445
}
45-

src/Adyen/Model/BinLookup/ObjectSerializer.php

+5-4
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/Checkout/CheckoutPaymentMethod.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ public function getShopperEmail()
20722072
/**
20732073
* Sets shopperEmail
20742074
*
2075-
* @param string $shopperEmail
2075+
* @param string $shopperEmail
20762076
*
20772077
* @return self
20782078
*/
@@ -2096,7 +2096,7 @@ public function getTelephoneNumber()
20962096
/**
20972097
* Sets telephoneNumber
20982098
*
2099-
* @param string $telephoneNumber
2099+
* @param string $telephoneNumber
21002100
*
21012101
* @return self
21022102
*/

src/Adyen/Model/Checkout/MbwayDetails.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function getShopperEmail()
361361
/**
362362
* Sets shopperEmail
363363
*
364-
* @param string $shopperEmail
364+
* @param string $shopperEmail
365365
*
366366
* @return self
367367
*/
@@ -385,7 +385,7 @@ public function getTelephoneNumber()
385385
/**
386386
* Sets telephoneNumber
387387
*
388-
* @param string $telephoneNumber
388+
* @param string $telephoneNumber
389389
*
390390
* @return self
391391
*/

src/Adyen/Model/Checkout/ObjectSerializer.php

+5-4
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/Checkout/VippsDetails.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public function getTelephoneNumber()
415415
/**
416416
* Sets telephoneNumber
417417
*
418-
* @param string $telephoneNumber
418+
* @param string $telephoneNumber
419419
*
420420
* @return self
421421
*/

src/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function getAmountPerIndustry()
358358
/**
359359
* Sets amountPerIndustry
360360
*
361-
* @param array<string,\Adyen\Model\ConfigurationWebhooks\Amount>|null $amountPerIndustry
361+
* @param array<string,\Adyen\Model\ConfigurationWebhooks\Amount>|null $amountPerIndustry
362362
*
363363
* @return self
364364
*/
@@ -382,7 +382,7 @@ public function getAuthorizedCardUsers()
382382
/**
383383
* Sets authorizedCardUsers
384384
*
385-
* @param bool|null $authorizedCardUsers
385+
* @param bool|null $authorizedCardUsers
386386
*
387387
* @return self
388388
*/
@@ -406,7 +406,7 @@ public function getFundingSource()
406406
/**
407407
* Sets fundingSource
408408
*
409-
* @param string[]|null $fundingSource
409+
* @param string[]|null $fundingSource
410410
*
411411
* @return self
412412
*/
@@ -439,7 +439,7 @@ public function getInterval()
439439
/**
440440
* Sets interval
441441
*
442-
* @param string|null $interval
442+
* @param string|null $interval
443443
*
444444
* @return self
445445
*/

src/Adyen/Model/ConfigurationWebhooks/ObjectSerializer.php

+5-4
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/DataProtection/ObjectSerializer.php

+5-4
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/DisputeWebhooks/ObjectSerializer.php

+5-4
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
) {

0 commit comments

Comments
 (0)