core/model/modx/processors/security/user/getrecentlyeditedresources.class.php
Method prepareRow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function prepareRow(xPDOObject $object) {
if (!$object->checkPolicy('view')) return array();
$resourceArray = $object->get(array('id','pagetitle','description','published','deleted', 'context_key'));
$resourceArray['pagetitle'] = htmlspecialchars($resourceArray['pagetitle'], ENT_QUOTES, $this->modx->getOption('modx_charset', null, 'UTF-8'));