original_string: public function getUserVoted($userId)
      {
          return (new Query())->from('{{%podium_poll_vote}}')->where([
              'poll_id' => $this->id,
              'caster_id' => $userId
          ])->count('id') ? true : false;
      }
code: public function getUserVoted($userId)
      {
          return (new Query())->from('{{%podium_poll_vote}}')->where([
              'poll_id' => $this->id,
              'caster_id' => $userId
          ])->count('id') ? true : false;
      }
code_tokens: public function getUserVoted ( $ userId ) { return ( new Query ( ) ) -> from ( '{{%podium_poll_vote}}' ) -> where ( [ 'poll_id' => $ this -> id , 'caster_id' => $ userId ] ) -> count ( 'id' ) ? true : false ; }
docstring: Checks if user has already voted in poll.
  @param int $userId
  @return bool
docstring_tokens: Checks if user has already voted in poll .