original_string: public function run()
  	{
  		if(empty($this->options['id'])) {
  			$this->options['id'] = $this->id;
  		}
  		
  		if($this->encodeLabel) {
  			$this->label = Html::encode($this->label);
  		}
  		
  		$perPage = !empty($_GET[$this->pageSizeParam]) ? $_GET[$this->pageSizeParam] : $this->defaultPageSize;
  		
  		$listHtml = Html::dropDownList($this->pageSizeParam, $perPage, $this->sizes, $this->options);
  		$labelHtml = Html::label($this->label, $this->options['id'], $this->labelOptions);
  		
  		$output = str_replace(['{list}', '{label}'], [$listHtml, $labelHtml], $this->template);
  		
  		return $output;
  	}
code: public function run()
  	{
  		if(empty($this->options['id'])) {
  			$this->options['id'] = $this->id;
  		}
  		
  		if($this->encodeLabel) {
  			$this->label = Html::encode($this->label);
  		}
  		
  		$perPage = !empty($_GET[$this->pageSizeParam]) ? $_GET[$this->pageSizeParam] : $this->defaultPageSize;
  		
  		$listHtml = Html::dropDownList($this->pageSizeParam, $perPage, $this->sizes, $this->options);
  		$labelHtml = Html::label($this->label, $this->options['id'], $this->labelOptions);
  		
  		$output = str_replace(['{list}', '{label}'], [$listHtml, $labelHtml], $this->template);
  		
  		return $output;
  	}
code_tokens: public function run ( ) { if ( empty ( $ this -> options [ 'id' ] ) ) { $ this -> options [ 'id' ] = $ this -> id ; } if ( $ this -> encodeLabel ) { $ this -> label = Html :: encode ( $ this -> label ) ; } $ perPage = ! empty ( $ _GET [ $ this -> pageSizeParam ] ) ? $ _GET [ $ this -> pageSizeParam ] : $ this -> defaultPageSize ; $ listHtml = Html :: dropDownList ( $ this -> pageSizeParam , $ perPage , $ this -> sizes , $ this -> options ) ; $ labelHtml = Html :: label ( $ this -> label , $ this -> options [ 'id' ] , $ this -> labelOptions ) ; $ output = str_replace ( [ '{list}' , '{label}' ] , [ $ listHtml , $ labelHtml ] , $ this -> template ) ; return $ output ; }
docstring: Runs the widget and render the output
docstring_tokens: Runs the widget and render the output