Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function find_invocation_warnings( $invocation, $warnings ) { |
||
30 | if ( $invocation instanceof Static_Const ) { |
||
31 | if ( $invocation->class_name === $this->declaration->class_name |
||
32 | && $invocation->const_name === $this->declaration->const_name) { |
||
33 | $warnings->add( new Warning( $this->type(), $invocation->path, $invocation->line, 'Class constant ' . $this->declaration->display_name() . ' is missing', $this->declaration ) ); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |