original_string: public function run()
      {
          if (!$this->model) {
              return null;
          }
          $hidden = $this->model->hidden;
          if ($hidden && !empty($this->model->end_at) && $this->model->end_at < time()) {
              $hidden = 0;
          }
          return $this->render('view', [
              'model' => $this->model,
              'hidden' => $hidden,
              'voted' => $this->display ? true : $this->model->getUserVoted(User::loggedId()),
              'display' => $this->display
          ]);
      }
code: public function run()
      {
          if (!$this->model) {
              return null;
          }
          $hidden = $this->model->hidden;
          if ($hidden && !empty($this->model->end_at) && $this->model->end_at < time()) {
              $hidden = 0;
          }
          return $this->render('view', [
              'model' => $this->model,
              'hidden' => $hidden,
              'voted' => $this->display ? true : $this->model->getUserVoted(User::loggedId()),
              'display' => $this->display
          ]);
      }
code_tokens: public function run ( ) { if ( ! $ this -> model ) { return null ; } $ hidden = $ this -> model -> hidden ; if ( $ hidden && ! empty ( $ this -> model -> end_at ) && $ this -> model -> end_at < time ( ) ) { $ hidden = 0 ; } return $ this -> render ( 'view' , [ 'model' => $ this -> model , 'hidden' => $ hidden , 'voted' => $ this -> display ? true : $ this -> model -> getUserVoted ( User :: loggedId ( ) ) , 'display' => $ this -> display ] ) ; }
docstring: Rendering the poll.
  @return string
docstring_tokens: Rendering the poll .