| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | function wps_display_user_switching_link( $customer_id, $wp_user_id, $need_separator = true ) { |
||
| 32 | $user = get_user_by( 'id', $wp_user_id ); |
||
| 33 | $output = '<a href="' . esc_url( user_switching::switch_to_url( $user ) ) . '" >' . esc_html( 'Switch to user', 'wpshop' ) . '</a>'; |
||
| 34 | |||
| 35 | echo $output; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.