src/Controller/Admin/DBStatus.php
Method handleItems
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function handleItems()
{
if (filter_input(INPUT_GET, 'clearorphaneditems') !== null) {
$this->db->exec('DELETE FROM item_lang WHERE itml_pid NOT IN (SELECT itm_id FROM item_base)');
}
Method handleItemGroups
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function handleItemGroups()
{
if (filter_input(INPUT_GET, 'clearorphaneditemgroups') !== null) {
$this->db->exec('DELETE FROM itemgroups_text WHERE itmgt_pid NOT IN (SELECT itmg_id FROM itemgroups_base)');
}