| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function isSatisfied( RequestInterface $request ) { |
||
| 57 | if ( ! $this->isAdminPage() ) { |
||
| 58 | return false; |
||
| 59 | } |
||
| 60 | |||
| 61 | $screen = get_current_screen(); |
||
|
1 ignored issue
–
show
|
|||
| 62 | |||
| 63 | if ( ! $screen ) { |
||
|
1 ignored issue
–
show
|
|||
| 64 | return false; |
||
| 65 | } |
||
| 66 | |||
| 67 | return $screen->id === get_plugin_page_hookname( $this->menu, $this->parent_menu ); |
||
| 68 | } |
||
| 77 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.