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