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

@@ -46,14 +46,14 @@ class WebhookTransformer extends AbstractTransformer
/**
* Transform webhook.
*
* @param Webhook $webhook
* @param Webhook $webhook
*
* @return array
*/
public function transform(Webhook $webhook): array
{
return [
'id' => (int) $webhook->id,
'id' => (int)$webhook->id,
'created_at' => $webhook->created_at->toAtomString(),
'updated_at' => $webhook->updated_at->toAtomString(),
'active' => $webhook->active,
@@ -73,8 +73,8 @@ class WebhookTransformer extends AbstractTransformer
}
/**
* @param string $type
* @param int $value
* @param string $type
* @param int $value
* @return string
*/
private function getEnum(string $type, int $value): string