Invis1ble/assistant

View on GitHub
src/AppBundle/Controller/UserCategoryController.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 1 of 1 total issue

Similar blocks of code found in 3 locations. Consider refactoring.
Open

public function postCategoryAction(Request $request, User $fetchedUser)
{
$categoryManager = $this->get('app.manager.category_manager');
$category = $categoryManager->createCategory();
$category->setUser($fetchedUser);
Severity: Major
Found in src/AppBundle/Controller/UserCategoryController.php and 2 other locations - About 2 hrs to fix
src/AppBundle/Controller/CategoryTaskController.php on lines 133..151
src/AppBundle/Controller/TaskPeriodController.php on lines 113..131

There are no issues that match your filters.

Category
Status