app/Module/StoriesModule.php
Method getAdminEditAction
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdminEditAction(ServerRequestInterface $request): ResponseInterface
{
$this->layout = 'layouts/administration';
$tree = Validator::attributes($request)->tree();
Method getAdminAction
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAdminAction(ServerRequestInterface $request): ResponseInterface
{
$this->layout = 'layouts/administration';
// This module can't run without a tree
Method postAdminEditAction
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function postAdminEditAction(ServerRequestInterface $request): ResponseInterface
{
$tree = Validator::attributes($request)->tree();
$block_id = Validator::queryParams($request)->integer('block_id', 0);
$xref = Validator::parsedBody($request)->string('xref');