Skip to content

Commit 220fb07

Browse files
committed
Code format
1 parent dbd11b8 commit 220fb07

File tree

9 files changed

+38
-22
lines changed

9 files changed

+38
-22
lines changed

src/Adyen/Model/BinLookup/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/DataProtection/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/Disputes/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/Payments/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/Payout/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/PosMobile/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/Recurring/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Model/StoredValue/ObjectSerializer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach($data as $property => $value) {
85+
foreach ($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,7 +118,9 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) return $timestamp;
121+
if (!is_string($timestamp)) {
122+
return $timestamp;
123+
}
122124

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

src/Adyen/Service/RecurringApi.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(Client $client)
4242
/**
4343
* Create new permits linked to a recurring contract.
4444
*
45-
* @deprecated since Adyen Recurring API v68.
45+
* @deprecated since Adyen Recurring API v68.
4646
* @param \Adyen\Model\Recurring\CreatePermitRequest $createPermitRequest
4747
* @param array|null $requestOptions
4848
* @return \Adyen\Model\Recurring\CreatePermitResult
@@ -58,7 +58,7 @@ public function createPermit(\Adyen\Model\Recurring\CreatePermitRequest $createP
5858
/**
5959
* Disable stored payment details
6060
*
61-
* @deprecated since Adyen Recurring API v68.
61+
* @deprecated since Adyen Recurring API v68.
6262
* @param \Adyen\Model\Recurring\DisableRequest $disableRequest
6363
* @param array|null $requestOptions
6464
* @return \Adyen\Model\Recurring\DisableResult
@@ -74,7 +74,7 @@ public function disable(\Adyen\Model\Recurring\DisableRequest $disableRequest, ?
7474
/**
7575
* Disable an existing permit.
7676
*
77-
* @deprecated since Adyen Recurring API v68.
77+
* @deprecated since Adyen Recurring API v68.
7878
* @param \Adyen\Model\Recurring\DisablePermitRequest $disablePermitRequest
7979
* @param array|null $requestOptions
8080
* @return \Adyen\Model\Recurring\DisablePermitResult
@@ -90,7 +90,7 @@ public function disablePermit(\Adyen\Model\Recurring\DisablePermitRequest $disab
9090
/**
9191
* Get stored payment details
9292
*
93-
* @deprecated since Adyen Recurring API v68.
93+
* @deprecated since Adyen Recurring API v68.
9494
* @param \Adyen\Model\Recurring\RecurringDetailsRequest $recurringDetailsRequest
9595
* @param array|null $requestOptions
9696
* @return \Adyen\Model\Recurring\RecurringDetailsResult
@@ -106,7 +106,7 @@ public function listRecurringDetails(\Adyen\Model\Recurring\RecurringDetailsRequ
106106
/**
107107
* Ask issuer to notify the shopper
108108
*
109-
* @deprecated since Adyen Recurring API v68.
109+
* @deprecated since Adyen Recurring API v68.
110110
* @param \Adyen\Model\Recurring\NotifyShopperRequest $notifyShopperRequest
111111
* @param array|null $requestOptions
112112
* @return \Adyen\Model\Recurring\NotifyShopperResult
@@ -122,7 +122,7 @@ public function notifyShopper(\Adyen\Model\Recurring\NotifyShopperRequest $notif
122122
/**
123123
* Schedule running the Account Updater
124124
*
125-
* @deprecated since Adyen Recurring API v68.
125+
* @deprecated since Adyen Recurring API v68.
126126
* @param \Adyen\Model\Recurring\ScheduleAccountUpdaterRequest $scheduleAccountUpdaterRequest
127127
* @param array|null $requestOptions
128128
* @return \Adyen\Model\Recurring\ScheduleAccountUpdaterResult

0 commit comments

Comments
 (0)