| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function find_invocation_warnings( $invocation, $warnings ) { |
||
| 30 | if ( $invocation instanceof New_ ) { |
||
| 31 | // check if it's instantiating this missing class |
||
| 32 | // echo "Checking " . $invocation->class_name . " matches " . $this->declaration->class_name . "\n"; |
||
| 33 | if ( $invocation->class_name === $this->declaration->class_name ) { |
||
| 34 | $warnings->add( new Warning( $this->type(), $invocation->path, $invocation->line, 'Class ' . $this->declaration->display_name() . ' is missing', $this->declaration ) ); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 |