src/Component/AbstractComponentService.php
Method update
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Method create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);