gocodebox/lifterlms

View on GitHub
includes/admin/class.llms.admin.dashboard-widget.php

Summary

Maintainability
A
3 hrs
Test Coverage
F
0%

Method output has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function output() {
        ?>
        <div class="llms-dashboard-widget-wrap">
            <h3><?php esc_html_e( 'Activity this week:', 'lifterlms' ); ?></h3>
            <a class="llms-button-primary" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=course' ) ); ?>">
Severity: Minor
Found in includes/admin/class.llms.admin.dashboard-widget.php - About 2 hrs to fix

    Method get_dashboard_widget_data has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function get_dashboard_widget_data() {
            return apply_filters(
                /**
                 * Filters the dashboard widget data.
                 *
    Severity: Minor
    Found in includes/admin/class.llms.admin.dashboard-widget.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status