Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 14, 2024
1 parent 5a6161c commit ca1964d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Api/Serializers/PollSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ protected function getDefaultAttributes($poll)
'isGlobal' => $poll->isGlobal(),
'imageUrl' => $this->getImageUrl($poll),
'imageAlt' => $poll->image_alt,
'publicPoll' => $poll->public_poll
'publicPoll' => $poll->public_poll,
];

if ($this->actor->can('seeVoteCount', $poll)) {
$attributes['voteCount'] = (int) $poll->vote_count;
}

if ($canEdit) {

$attributes['hideVotes'] = $poll->hide_votes;
$attributes['allowChangeVote'] = $poll->allow_change_vote;
}
Expand Down

0 comments on commit ca1964d

Please sign in to comment.