felixarntz/wp-site-identity

View on GitHub
src/shortcodes/class-wp-site-identity-shortcode-factory.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '52', column '14').
Open

        return new WP_Site_Identity_Shortcode( $tag, $render_callback, $args, $this->registry );

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '35', column '26').
Open

            $this->registry = new WP_Site_Identity_Standard_Shortcode_Registry();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

There are no issues that match your filters.

Category
Status