LarsNieuwenhuizen/ClubhouseConnector

View on GitHub
src/Component/AbstractComponentService.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function update(UpdateableComponent $component): ComponentResponseBody
    {
        if (!$component instanceof $this->componentClass) {
            $message = 'The object you are trying to update of type ' .
                \get_class($component) . ' is not a ' . $this->componentName;
Severity: Minor
Found in src/Component/AbstractComponentService.php - About 1 hr to fix

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

        public function create(CreateableComponent $component): ComponentResponseBody
        {
            if (!$component instanceof $this->componentClass) {
                $message = 'The object you are trying to create of type ' . \get_class($component) . ' is not a milestone.';
                $this->getLogger()->error($message);
    Severity: Minor
    Found in src/Component/AbstractComponentService.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status