| Conditions | 3 |
| Paths | 2 |
| Total Lines | 28 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public static function output( $post ) { |
||
|
|
|||
| 9 | global $post; |
||
| 10 | |||
| 11 | $notes = wpinv_get_invoice_notes( $post->ID ); |
||
| 12 | |||
| 13 | echo '<ul class="invoice_notes">'; |
||
| 14 | |||
| 15 | if ( $notes ) { |
||
| 16 | foreach ( $notes as $note ) { |
||
| 17 | wpinv_get_invoice_note_line_item( $note ); |
||
| 18 | } |
||
| 19 | } else { |
||
| 20 | echo '<li>' . esc_html__( 'There are no notes yet.', 'invoicing' ) . '</li>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | echo '</ul>'; |
||
| 24 | ?> |
||
| 25 | <div class="add_note"> |
||
| 26 | <h4><?php esc_html_e( 'Add note', 'invoicing' ); ?></h4> |
||
| 27 | <p> |
||
| 28 | <textarea type="text" name="invoice_note" id="add_invoice_note" class="input-text" cols="20" rows="5"></textarea> |
||
| 29 | </p> |
||
| 30 | <p> |
||
| 31 | <select name="invoice_note_type" id="invoice_note_type" class="regular-text"> |
||
| 32 | <option value=""><?php esc_html_e( 'Private note', 'invoicing' ); ?></option> |
||
| 33 | <option value="customer"><?php esc_html_e( 'Note to customer', 'invoicing' ); ?></option> |
||
| 34 | </select> |
||
| 35 | <a href="#" class="add_note button"><?php esc_html_e( 'Add', 'invoicing' ); ?></a> <span class="description"><?php esc_html_e( 'Add a note for your reference, or add a customer note (the user will be notified).', 'invoicing' ); ?></span> |
||
| 36 | </p> |
||
| 41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.