1<?php
2
3/*
4 * This file is part of the league/commonmark package.
5 *
6 * (c) Colin O'Dell <colinodell@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace PHPSTORM_META
13{
14    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');
15
16    expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::__construct(), 0, 1, 2, 3, 4, 5, 6);
17    expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\Heading::getLevel(), 1, 2, 3, 4, 5, 6);
18
19    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);
20    expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::__construct(), 0, argumentsSet('league_commonmark_htmlblock_types'));
21    expectedArguments(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::setType(), 0, argumentsSet('league_commonmark_htmlblock_types'));
22    expectedReturnValues(\League\CommonMark\Extension\CommonMark\Node\Block\HtmlBlock::getType(), argumentsSet('league_commonmark_htmlblock_types'));
23    expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockOpenRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
24    expectedArguments(\League\CommonMark\Util\RegexHelper::getHtmlBlockCloseRegex(), 0, argumentsSet('league_commonmark_htmlblock_types'));
25
26    registerArgumentsSet('league_commonmark_newline_types', \League\CommonMark\Node\Inline\Newline::HARDBREAK, \League\CommonMark\Node\Inline\Newline::SOFTBREAK);
27    expectedArguments(\League\CommonMark\Node\Inline\Newline::__construct(), 0, argumentsSet('league_commonmark_newline_types'));
28    expectedReturnValues(\League\CommonMark\Node\Inline\Newline::getType(), argumentsSet('league_commonmark_newline_types'));
29
30    registerArgumentsSet('league_commonmark_options',
31        'html_input',
32        'allow_unsafe_links',
33        'max_nesting_level',
34        'renderer',
35        'renderer/block_separator',
36        'renderer/inner_separator',
37        'renderer/soft_break',
38        'commonmark',
39        'commonmark/enable_em',
40        'commonmark/enable_strong',
41        'commonmark/use_asterisk',
42        'commonmark/use_underscore',
43        'commonmark/unordered_list_markers',
44        'disallowed_raw_html',
45        'disallowed_raw_html/disallowed_tags',
46        'external_link',
47        'external_link/html_class',
48        'external_link/internal_hosts',
49        'external_link/nofollow',
50        'external_link/noopener',
51        'external_link/noreferrer',
52        'external_link/open_in_new_window',
53        'footnote',
54        'footnote/backref_class',
55        'footnote/backref_symbol',
56        'footnote/container_add_hr',
57        'footnote/container_class',
58        'footnote/ref_class',
59        'footnote/ref_id_prefix',
60        'footnote/footnote_class',
61        'footnote/footnote_id_prefix',
62        'heading_permalink',
63        'heading_permalink/apply_id_to_heading',
64        'heading_permalink/heading_class',
65        'heading_permalink/html_class',
66        'heading_permalink/fragment_prefix',
67        'heading_permalink/id_prefix',
68        'heading_permalink/inner_contents',
69        'heading_permalink/insert',
70        'heading_permalink/max_heading_level',
71        'heading_permalink/min_heading_level',
72        'heading_permalink/symbol',
73        'heading_permalink/title',
74        'mentions',
75        'smartpunct/double_quote_closer',
76        'smartpunct/double_quote_opener',
77        'smartpunct/single_quote_closer',
78        'smartpunct/single_quote_opener',
79        'slug_normalizer',
80        'slug_normalizer/instance',
81        'slug_normalizer/max_length',
82        'slug_normalizer/unique',
83        'table',
84        'table/wrap',
85        'table/wrap/attributes',
86        'table/wrap/enabled',
87        'table/wrap/tag',
88        'table/alignment_attributes',
89        'table/alignment_attributes/left',
90        'table/alignment_attributes/center',
91        'table/alignment_attributes/right',
92        'table_of_contents',
93        'table_of_contents/html_class',
94        'table_of_contents/max_heading_level',
95        'table_of_contents/min_heading_level',
96        'table_of_contents/normalize',
97        'table_of_contents/placeholder',
98        'table_of_contents/position',
99        'table_of_contents/style',
100    );
101    expectedArguments(\League\Config\ConfigurationInterface::get(), 0, argumentsSet('league_commonmark_options'));
102    expectedArguments(\League\Config\ConfigurationInterface::exists(), 0, argumentsSet('league_commonmark_options'));
103    expectedArguments(\League\Config\MutableConfigurationInterface::set(), 0, argumentsSet('league_commonmark_options'));
104}
105