Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
RedundantExistenceChecksPlugin
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getPostAnalyzeNodeVisitorClassName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare( strict_types=1 );
4
5namespace MediaWikiPhanConfig\Plugin;
6
7use Phan\PluginV3;
8use Phan\PluginV3\PostAnalyzeNodeCapability;
9
10class 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
22return new RedundantExistenceChecksPlugin();