gocodebox/lifterlms

View on GitHub
includes/admin/class.llms.admin.notices.core.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

Method gateways has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function gateways() {
        $id = 'no-gateways';

        if ( ! apply_filters( 'llms_admin_notice_no_payment_gateways', llms()->payment_gateways()->has_gateways( true ) ) ) {
            $html  = __( 'No LifterLMS Payment Gateways are currently enabled. Students will only be able to enroll in courses or memberships with free access plans.', 'lifterlms' ) . '<br><br>';
Severity: Minor
Found in includes/admin/class.llms.admin.notices.core.php - About 1 hr to fix

    Method media_protection has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function media_protection() {
            $id = 'using-nginx';
            if (
                apply_filters(
                    'llms_admin_notice_using_nginx',
    Severity: Minor
    Found in includes/admin/class.llms.admin.notices.core.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status