original_string: public function getSupportedFormats()
      {
          $formats = array();
  
          foreach (gd_info() as $name => $status) {
              if (strpos($name, 'Support') !== false && $status) {
                  $formats[] = strtolower(strtok($name, ' '));
              }
          }
  
          return array_unique($formats);
      }
code: public function getSupportedFormats()
      {
          $formats = array();
  
          foreach (gd_info() as $name => $status) {
              if (strpos($name, 'Support') !== false && $status) {
                  $formats[] = strtolower(strtok($name, ' '));
              }
          }
  
          return array_unique($formats);
      }
code_tokens: public function getSupportedFormats ( ) { $ formats = array ( ) ; foreach ( gd_info ( ) as $ name => $ status ) { if ( strpos ( $ name , 'Support' ) !== false && $ status ) { $ formats [ ] = strtolower ( strtok ( $ name , ' ' ) ) ; } } return array_unique ( $ formats ) ; }
docstring: Returns an array of supported image formats
  @return array
docstring_tokens: Returns an array of supported image formats