Passed
Pull Request — master (#377)
by Brian
06:57
created

WPInv_Meta_Box_Billing_Details::output()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 2
nc 2
nop 1
1
<?php
2
// MUST have WordPress.
3
if ( !defined( 'WPINC' ) ) {
4
    exit( 'Do NOT access this file directly: ' . basename( __FILE__ ) );
5
}
6
7
class WPInv_Meta_Box_Billing_Details {
8
    public static function output( $post ) {
9
        global $user_ID;
10
        $post_id    = !empty( $post->ID ) ? $post->ID : 0;
11
        $invoice    = new WPInv_Invoice( $post_id );
0 ignored issues
show
Unused Code introduced by
The assignment to $invoice is dead and can be removed.
Loading history...
12
13
    }
14
}
15