app/Module/FamilyTreeNewsModule.php
Method getEditNewsAction
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getEditNewsAction(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
if (!Auth::isManager($tree)) {
Method postEditNewsAction
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postEditNewsAction(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
if (!Auth::isManager($tree)) {