Various PSR12 code cleanup

This commit is contained in:
James Cole
2022-12-29 19:42:40 +01:00
parent 6cfdc58cb1
commit 56b9b66352
38 changed files with 763 additions and 691 deletions

View File

@@ -33,18 +33,18 @@ class WebhookAttemptTransformer extends AbstractTransformer
/**
* Transform the preference
*
* @param WebhookAttempt $attempt
* @param WebhookAttempt $attempt
*
* @return array
*/
public function transform(WebhookAttempt $attempt): array
{
return [
'id' => (string) $attempt->id,
'id' => (string)$attempt->id,
'created_at' => $attempt->created_at->toAtomString(),
'updated_at' => $attempt->updated_at->toAtomString(),
'webhook_message_id' => (string) $attempt->webhook_message_id,
'status_code' => (int) $attempt->status_code,
'webhook_message_id' => (string)$attempt->webhook_message_id,
'status_code' => (int)$attempt->status_code,
'logs' => $attempt->logs,
'response' => $attempt->response,
];