intraxia/wp-gistpen

View on GitHub
app/View/Content.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method filter_hooks has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function filter_hooks() {
        return array(
            array(
                'hook'     => 'the_content',
                'method'   => 'post_content',
Severity: Minor
Found in app/View/Content.php - About 1 hr to fix

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

        public function do_shortcode( array $attrs, $content = '' ) {
            $args = shortcode_atts( static::$defaults, $attrs, 'gistpen' );
    
            // If the user didn't provide an ID, raise an error
            if ( ! $args['id'] ) {
    Severity: Minor
    Found in app/View/Content.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status