| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | function tinywp_auto_plugin_theme_update_email( $email, $type, $successful_updates, $failed_updates ) { |
||
| 6 | // You may change the email recipient. Default is site admin email. |
||
| 7 | // $email['to'] = '[email protected]'; |
||
| 8 | // You may change the email subject when updates failed |
||
| 9 | if ( 'fail' === $type ) { |
||
| 10 | $email['subject'] = __( 'ATTN: IT Department – SOME AUTO-UPDATES WENT WRONG!', 'my-plugin' ); |
||
| 11 | } |
||
| 12 | |||
| 13 | return $email; |
||
| 14 | } |
||
| 16 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.