Passed
Pull Request — master (#47)
by Kiran
04:02
created

subscriptions.php ➔ wpinv_recurring_subscriptions_list()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 13
nc 1
nop 0
dl 0
loc 22
rs 9.2
c 0
b 0
f 0
1
<?php
2
/**
3
 * Render the subscriptions table
4
 *
5
 * @access      public
6
 * @since       1.0.0
7
 * @return      void
8
 */
9
function wpinv_recurring_subscriptions_list() {
10
    ?>
11
    <div class="wrap">
12
        <h1>
13
            <?php _e( 'Subscriptions', 'invoicing' ); ?>
14
            <a href="<?php echo esc_url( add_query_arg( array( 'wpi_action' => 'add_subscription' ) ) ); ?>" class="add-new-h2"><?php _e( 'Add New', 'invoicing' ); ?></a>
15
        </h1>
16
        <?php
17
        //$subscribers_table = new EDD_Subscription_Reports_Table();
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
18
        //$subscribers_table->prepare_items();
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
19
        ?>
20
21
        <form id="subscribers-filter" method="get">
22
            <input type="hidden" name="post_type" value="download" />
23
            <input type="hidden" name="page" value="edd-subscriptions" />
24
            <?php //$subscribers_table->views() ?>
25
            <?php //$subscribers_table->search_box( __( 'Search', 'invoicing' ), 'subscriptions' ) ?>
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
26
            <?php //$subscribers_table->display() ?>
27
        </form>
28
    </div>
29
    <?php
30
}