Skip to content

Commit 6e674b4

Browse files
committed
Format code
1 parent 98aaba0 commit 6e674b4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Adyen/Model/TokenizationWebhooks/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
}

tests/Unit/NotificationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,5 +510,4 @@ public function testTokenizationWebhookRecurringTokenAlreadyExisting()
510510
self::assertEquals("recurring.token.alreadyExisting", $result->getType());
511511
self::assertEquals("test", $result->getEnvironment());
512512
}
513-
514513
}

0 commit comments

Comments
 (0)