original_string: public static function timezones()
      {
          $timezones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL);
          $offsets = [];
          $testDate = new \DateTime();
  
          foreach ($timezones as $zone) {
              $tz = new \DateTimeZone($zone);
              $offsets[$zone] = $tz->getOffset($testDate);
          }
  
          asort($offsets);
  
          $timezone_list = [];
          foreach ($offsets as $timezone => $offset) {
              $offset_prefix = $offset < 0 ? '-' : '+';
              $offset_formatted = gmdate('H:i', abs($offset));
  
              $pretty_offset = "UTC${offset_prefix}${offset_formatted}";
  
              $timezone_list[$timezone] = "(${pretty_offset}) ".str_replace('_', ' ', $timezone);
          }
  
          return $timezone_list;
      }
code: public static function timezones()
      {
          $timezones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL);
          $offsets = [];
          $testDate = new \DateTime();
  
          foreach ($timezones as $zone) {
              $tz = new \DateTimeZone($zone);
              $offsets[$zone] = $tz->getOffset($testDate);
          }
  
          asort($offsets);
  
          $timezone_list = [];
          foreach ($offsets as $timezone => $offset) {
              $offset_prefix = $offset < 0 ? '-' : '+';
              $offset_formatted = gmdate('H:i', abs($offset));
  
              $pretty_offset = "UTC${offset_prefix}${offset_formatted}";
  
              $timezone_list[$timezone] = "(${pretty_offset}) ".str_replace('_', ' ', $timezone);
          }
  
          return $timezone_list;
      }
code_tokens: public static function timezones ( ) { $ timezones = \ DateTimeZone :: listIdentifiers ( \ DateTimeZone :: ALL ) ; $ offsets = [ ] ; $ testDate = new \ DateTime ( ) ; foreach ( $ timezones as $ zone ) { $ tz = new \ DateTimeZone ( $ zone ) ; $ offsets [ $ zone ] = $ tz -> getOffset ( $ testDate ) ; } asort ( $ offsets ) ; $ timezone_list = [ ] ; foreach ( $ offsets as $ timezone => $ offset ) { $ offset_prefix = $ offset < 0 ? '-' : '+' ; $ offset_formatted = gmdate ( 'H:i' , abs ( $ offset ) ) ; $ pretty_offset = "UTC${offset_prefix}${offset_formatted}" ; $ timezone_list [ $ timezone ] = "(${pretty_offset}) " . str_replace ( '_' , ' ' , $ timezone ) ; } return $ timezone_list ; }
docstring: Get the formatted timezones list
  
  @return array
docstring_tokens: Get the formatted timezones list