You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
5.6 KiB

3 years ago
  1. <?php
  2. /*
  3. * This file is part of the league/commonmark package.
  4. *
  5. * (c) Colin O'Dell <colinodell@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace PHPSTORM_META
  11. {
  12. expectedArguments(\League\CommonMark\Util\HtmlElement::__construct(), 0, 'a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kdb', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'pre', 'progress', 'q', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr');
  13. expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::__construct(), 0, 1, 2, 3, 4, 5, 6);
  14. expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::getLevel(), 1, 2, 3, 4, 5, 6);
  15. registerArgumentsSet('league_commonmark_htmlblock_types', \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_1_CODE_CONTAINER, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_2_COMMENT, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_3, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_4, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_5_CDATA, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_6_BLOCK_ELEMENT, \League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::TYPE_7_MISC_ELEMENT);
  16. expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::__construct(), 0, argumentsSet('league_commonmark_htmlblock_types'));
  17. expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::setType(), 0, argumentsSet('league_commonmark_htmlblock_types'));
  18. expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::getType(), argumentsSet('league_commonmark_htmlblock_types'));
  19. expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockOpenRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
  20. expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockCloseRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
  21. registerArgumentsSet('league_commonmark_newline_types', \League\CommonMark\Node\Inline\Newline::HARDBREAK, \League\CommonMark\Node\Inline\Newline::SOFTBREAK);
  22. expectedArguments(\League\CommonMark\Node\Inline\Newline::__construct(), 0, argumentsSet('league_commonmark_newline_types'));
  23. expectedReturnValues(\League\CommonMark\Node\Inline\Newline::getType(), argumentsSet('league_commonmark_newline_types'));
  24. registerArgumentsSet('league_commonmark_options',
  25. 'html_input',
  26. 'allow_unsafe_links',
  27. 'max_nesting_level',
  28. 'renderer',
  29. 'renderer/block_separator',
  30. 'renderer/inner_separator',
  31. 'renderer/soft_break',
  32. 'commonmark',
  33. 'commonmark/enable_em',
  34. 'commonmark/enable_strong',
  35. 'commonmark/use_asterisk',
  36. 'commonmark/use_underscore',
  37. 'commonmark/unordered_list_markers',
  38. 'disallowed_raw_html',
  39. 'disallowed_raw_html/disallowed_tags',
  40. 'external_link',
  41. 'external_link/html_class',
  42. 'external_link/internal_hosts',
  43. 'external_link/nofollow',
  44. 'external_link/noopener',
  45. 'external_link/noreferrer',
  46. 'external_link/open_in_new_window',
  47. 'footnote',
  48. 'footnote/backref_class',
  49. 'footnote/backref_symbol',
  50. 'footnote/container_add_hr',
  51. 'footnote/container_class',
  52. 'footnote/ref_class',
  53. 'footnote/ref_id_prefix',
  54. 'footnote/footnote_class',
  55. 'footnote/footnote_id_prefix',
  56. 'heading_permalink',
  57. 'heading_permalink/html_class',
  58. 'heading_permalink/fragment_prefix',
  59. 'heading_permalink/id_prefix',
  60. 'heading_permalink/inner_contents',
  61. 'heading_permalink/insert',
  62. 'heading_permalink/max_heading_level',
  63. 'heading_permalink/min_heading_level',
  64. 'heading_permalink/symbol',
  65. 'heading_permalink/title',
  66. 'mentions',
  67. 'smartpunct/double_quote_closer',
  68. 'smartpunct/double_quote_opener',
  69. 'smartpunct/single_quote_closer',
  70. 'smartpunct/single_quote_opener',
  71. 'slug_normalizer',
  72. 'slug_normalizer/instance',
  73. 'slug_normalizer/max_length',
  74. 'slug_normalizer/unique',
  75. 'table_of_contents',
  76. 'table_of_contents/html_class',
  77. 'table_of_contents/max_heading_level',
  78. 'table_of_contents/min_heading_level',
  79. 'table_of_contents/normalize',
  80. 'table_of_contents/placeholder',
  81. 'table_of_contents/position',
  82. 'table_of_contents/style',
  83. );
  84. expectedArguments(\League\Config\ConfigurationInterface::get(), 0, argumentsSet('league_commonmark_options'));
  85. expectedArguments(\League\Config\ConfigurationInterface::exists(), 0, argumentsSet('league_commonmark_options'));
  86. expectedArguments(\League\Config\MutableConfigurationInterface::set(), 0, argumentsSet('league_commonmark_options'));
  87. }