tyhand/workflow-bundle

View on GitHub
Listeners/ContextRelationSubscriber.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        // Filter out metadata that is not using the context interface
        if (!in_array(self::CONTEXT_INTERFACE, class_implements($eventArgs->getClassMetadata()->getName()))) {
            return;
Severity: Minor
Found in Listeners/ContextRelationSubscriber.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status