felixarntz/wp-plugin-contracts

View on GitHub

Showing 1 of 5 total issues

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

    protected function load_plugin_instance( string $main_file, string $class_name ) : Plugin {
        if ( ! class_exists( $class_name ) ) {
            throw new Plugin_Loading_Exception(
                sprintf(
                    'Plugin class %s does not exist.',
Severity: Minor
Found in src/Plugin_Container.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language