original_string: public function srcset($reset = true)
      {
          if (empty($this->alternatives)) {
              if ($reset) {
                  $this->reset();
              }
  
              return '';
          }
  
          $srcset = [];
          foreach ($this->alternatives as $ratio => $medium) {
              $srcset[] = $medium->url($reset) . ' ' . $medium->get('width') . 'w';
          }
          $srcset[] = str_replace(' ', '%20', $this->url($reset)) . ' ' . $this->get('width') . 'w';
  
          return implode(', ', $srcset);
      }
code: public function srcset($reset = true)
      {
          if (empty($this->alternatives)) {
              if ($reset) {
                  $this->reset();
              }
  
              return '';
          }
  
          $srcset = [];
          foreach ($this->alternatives as $ratio => $medium) {
              $srcset[] = $medium->url($reset) . ' ' . $medium->get('width') . 'w';
          }
          $srcset[] = str_replace(' ', '%20', $this->url($reset)) . ' ' . $this->get('width') . 'w';
  
          return implode(', ', $srcset);
      }
code_tokens: public function srcset ( $ reset = true ) { if ( empty ( $ this -> alternatives ) ) { if ( $ reset ) { $ this -> reset ( ) ; } return '' ; } $ srcset = [ ] ; foreach ( $ this -> alternatives as $ ratio => $ medium ) { $ srcset [ ] = $ medium -> url ( $ reset ) . ' ' . $ medium -> get ( 'width' ) . 'w' ; } $ srcset [ ] = str_replace ( ' ' , '%20' , $ this -> url ( $ reset ) ) . ' ' . $ this -> get ( 'width' ) . 'w' ; return implode ( ', ' , $ srcset ) ; }
docstring: Return srcset string for this Medium and its alternatives.
  
  @param bool $reset
  @return string
docstring_tokens: Return srcset string for this Medium and its alternatives .