original_string: public static function flagsList()
      {
          $flags = [];
          $Folder = new Folder(Plugin::path('Locale') . 'webroot/img/flags/');
  
          foreach ($Folder->read()[1] as $icon) {
              $value = $icon;
              $label = str_replace_last('.gif', '', $icon);
              $flags[$value] = $label;
          }
  
          asort($flags);
  
          return $flags;
      }
code: public static function flagsList()
      {
          $flags = [];
          $Folder = new Folder(Plugin::path('Locale') . 'webroot/img/flags/');
  
          foreach ($Folder->read()[1] as $icon) {
              $value = $icon;
              $label = str_replace_last('.gif', '', $icon);
              $flags[$value] = $label;
          }
  
          asort($flags);
  
          return $flags;
      }
code_tokens: public static function flagsList ( ) { $ flags = [ ] ; $ Folder = new Folder ( Plugin :: path ( 'Locale' ) . 'webroot/img/flags/' ) ; foreach ( $ Folder -> read ( ) [ 1 ] as $ icon ) { $ value = $ icon ; $ label = str_replace_last ( '.gif' , '' , $ icon ) ; $ flags [ $ value ] = $ label ; } asort ( $ flags ) ; return $ flags ; }
docstring: Gets a list of counties flags suitable for select boxes.
  
  @return array
docstring_tokens: Gets a list of counties flags suitable for select boxes .