Invis1ble/assistant

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

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 1 of 1 total issue

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

public function patchCategoryAction(Request $request, Category $category)
{
$form = $this->createForm(UserCategoryFormType::class, $category);
$form->submit(json_decode($request->getContent(), true), false);
 
 
Severity: Major
Found in src/AppBundle/Controller/CategoryController.php and 1 other location - About 2 hrs to fix
src/AppBundle/Controller/PeriodController.php on lines 109..123
Category
Status