Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
RedundantExistenceChecksPlugin | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getPostAnalyzeNodeVisitorClassName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare( strict_types=1 ); |
4 | |
5 | namespace MediaWikiPhanConfig\Plugin; |
6 | |
7 | use Phan\PluginV3; |
8 | use Phan\PluginV3\PostAnalyzeNodeCapability; |
9 | |
10 | class RedundantExistenceChecksPlugin extends PluginV3 implements PostAnalyzeNodeCapability { |
11 | public const EMPTY_ISSUE_TYPE = 'MediaWikiNoEmptyIfDefined'; |
12 | public const ISSET_ISSUE_TYPE = 'MediaWikiNoIssetIfDefined'; |
13 | |
14 | /** |
15 | * @inheritDoc |
16 | */ |
17 | public static function getPostAnalyzeNodeVisitorClassName(): string { |
18 | return RedundantExistenceChecksVisitor::class; |
19 | } |
20 | } |
21 | |
22 | return new RedundantExistenceChecksPlugin(); |