Skip to content

Commit 08d1587

Browse files
[reformat][adyen-sdk-automation] automated change
1 parent 2908c26 commit 08d1587

File tree

83 files changed

+3681
-200
lines changed

Some content is hidden

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

83 files changed

+3681
-200
lines changed

src/Adyen/Model/AcsWebhooks/AuthenticationDecision.php

+443
Large diffs are not rendered by default.

src/Adyen/Model/AcsWebhooks/ObjectSerializer.php

+4-5
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,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

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

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

0 commit comments

Comments
 (0)