original_string: public static function getExtensions(array $mimetypes)
      {
          $extensions = [];
          foreach ($mimetypes as $mimetype) {
              $extension = static::getExtensionByMime($mimetype, false);
              if ($extension && !\in_array($extension, $extensions, true)) {
                  $extensions[] = $extension;
              }
          }
  
          return $extensions;
      }
code: public static function getExtensions(array $mimetypes)
      {
          $extensions = [];
          foreach ($mimetypes as $mimetype) {
              $extension = static::getExtensionByMime($mimetype, false);
              if ($extension && !\in_array($extension, $extensions, true)) {
                  $extensions[] = $extension;
              }
          }
  
          return $extensions;
      }
code_tokens: public static function getExtensions ( array $ mimetypes ) { $ extensions = [ ] ; foreach ( $ mimetypes as $ mimetype ) { $ extension = static :: getExtensionByMime ( $ mimetype , false ) ; if ( $ extension && ! \ in_array ( $ extension , $ extensions , true ) ) { $ extensions [ ] = $ extension ; } } return $ extensions ; }
docstring: Get all the extensions for an array of mimetypes
  
  @param array $mimetypes
  @return array
docstring_tokens: Get all the extensions for an array of mimetypes