1 | <?php |
||||
2 | |||||
3 | /* |
||||
4 | * This file is part of the league/commonmark package. |
||||
5 | * |
||||
6 | * (c) Colin O'Dell <[email protected]> |
||||
7 | * |
||||
8 | * For the full copyright and license information, please view the LICENSE |
||||
9 | * file that was distributed with this source code. |
||||
10 | */ |
||||
11 | |||||
12 | namespace 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/html_class', |
||||
64 | 'heading_permalink/id_prefix', |
||||
65 | 'heading_permalink/inner_contents', |
||||
66 | 'heading_permalink/insert', |
||||
67 | 'heading_permalink/max_heading_level', |
||||
68 | 'heading_permalink/min_heading_level', |
||||
69 | 'heading_permalink/symbol', |
||||
70 | 'heading_permalink/title', |
||||
71 | 'mentions', |
||||
72 | 'smartpunct/double_quote_closer', |
||||
73 | 'smartpunct/double_quote_opener', |
||||
74 | 'smartpunct/single_quote_closer', |
||||
75 | 'smartpunct/single_quote_opener', |
||||
76 | 'slug_normalizer', |
||||
77 | 'slug_normalizer/instance', |
||||
78 | 'slug_normalizer/max_length', |
||||
79 | 'slug_normalizer/unique', |
||||
80 | 'table_of_contents', |
||||
81 | 'table_of_contents/html_class', |
||||
82 | 'table_of_contents/max_heading_level', |
||||
83 | 'table_of_contents/min_heading_level', |
||||
84 | 'table_of_contents/normalize', |
||||
85 | 'table_of_contents/placeholder', |
||||
86 | 'table_of_contents/position', |
||||
87 | 'table_of_contents/style', |
||||
88 | ); |
||||
89 | expectedArguments(\League\CommonMark\Configuration\ConfigurationInterface::get(), 0, argumentsSet('league_commonmark_options')); |
||||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
The call to
League\CommonMark\Config...urationInterface::get() has too few arguments starting with key .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.
Loading history...
|
|||||
90 | expectedArguments(\League\CommonMark\Configuration\ConfigurationInterface::exists(), 0, argumentsSet('league_commonmark_options')); |
||||
91 | expectedArguments(\League\CommonMark\Configuration\MutableConfigurationInterface::set(), 0, argumentsSet('league_commonmark_options')); |
||||
92 | } |
||||
93 |