Skip to content

Commit

Permalink
fix: style changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoScapolo committed Sep 20, 2024
1 parent 35d467b commit 5c5ecc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions src/Entities/Messages/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,4 @@ class Messages extends AbstractEntity
* @var bool
*/
public $isVoiceClip;

}
}
13 changes: 6 additions & 7 deletions tests/Fake/Messages/FakeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FakeResponse extends BaseFakeResponse
{
public function fakeMessage(array $params = []): object
{
return (object) [
return (object)[
'id' => $this->value($params, 'id', 'fake_id'),
'parentId' => $this->value($params, 'parentId', 'fake_parentId'),
'roomId' => $this->value($params, 'roomId', 'fake_roomId'),
Expand All @@ -18,16 +18,15 @@ public function fakeMessage(array $params = []): object
'text' => $this->value($params, 'text', 'fake_text'),
'markdown' => $this->value($params, 'markdown', 'fake_markdown'),
'html' => $this->value($params, 'html', 'fake_html'),
'files' => $this->value($params, 'files', (object) []),
'files' => $this->value($params, 'files', (object)[]),
'personId' => $this->value($params, 'personId', 'fake_personId'),
'personEmail' => $this->value($params, 'personEmail', 'fake_personEmail'),
'mentionedPeople' => $this->value($params, 'mentionedPeople', (object) []),
'mentionedGroups' => $this->value($params, 'mentionedGroups', (object) []),
'attachments' => $this->value($params, 'attachments', (object) []),
'mentionedPeople' => $this->value($params, 'mentionedPeople', (object)[]),
'mentionedGroups' => $this->value($params, 'mentionedGroups', (object)[]),
'attachments' => $this->value($params, 'attachments', (object)[]),
'created' => $this->value($params, 'created', 'fake_created'),
'updated' => $this->value($params, 'updated', 'fake_updated'),
'isVoiceClip' => $this->value($params, 'isVoiceClip', false),
];
}

}
}
5 changes: 2 additions & 3 deletions tests/Fake/Messages/MessagesFakeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ class MessagesFakeResponse extends FakeResponse
{
public function getMessagesFakeList()
{
return json_encode((object) [
return json_encode((object)[
'items' => [
$this->fakeMessage(),
$this->fakeMessage(),
],
]);
}

}
}

0 comments on commit 5c5ecc7

Please sign in to comment.