aristath/kirki

View on GitHub
packages/kirki-framework/module-webfonts/src/Webfonts/Helper.php

Summary

Maintainability
A
1 hr
Test Coverage

Method download_font_file has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function download_font_file( $url ) {

        $saved_fonts = get_option( 'kirki_font_local_filenames', [] );
        if ( isset( $saved_fonts[ $url ] ) && file_exists( $saved_fonts[ $url ]['file'] ) ) {
            return str_replace(
Severity: Minor
Found in packages/kirki-framework/module-webfonts/src/Webfonts/Helper.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status