| Conditions | 5 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | View Code Duplication | public function find_invocation_warnings( $invocation, $warnings ) { |
|
| 34 | if ( $invocation instanceof Static_Call ) { |
||
| 35 | // check if it's instantiating this missing class |
||
| 36 | if ( $invocation->class_name === $this->declaration->class_name |
||
| 37 | && $invocation->method_name === $this->declaration->method_name |
||
| 38 | && $this->declaration->static ) { |
||
| 39 | $warnings->add( new Warning( $this->type(), $invocation->path, $invocation->line, 'Class static method ' . $this->declaration->display_name() . ' is missing', $this->declaration ) ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 |