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

@@ -47,7 +47,7 @@ class ObjectGroupTransformer extends AbstractTransformer
/**
* Transform the account.
*
* @param ObjectGroup $objectGroup
* @param ObjectGroup $objectGroup
*
* @return array
*/
@@ -56,15 +56,15 @@ class ObjectGroupTransformer extends AbstractTransformer
$this->repository->setUser($objectGroup->user);
return [
'id' => (string) $objectGroup->id,
'id' => (string)$objectGroup->id,
'created_at' => $objectGroup->created_at?->toAtomString(),
'updated_at' => $objectGroup->updated_at?->toAtomString(),
'title' => $objectGroup->title,
'order' => (int) $objectGroup->order,
'order' => (int)$objectGroup->order,
'links' => [
[
'rel' => 'self',
'uri' => '/object_groups/' . $objectGroup->id,
'uri' => '/object_groups/'.$objectGroup->id,
],
],
];