Code Duplication    Length = 3-3 lines in 2 locations

class/Table.php 2 locations

@@ 371-373 (lines=3) @@
368
//                require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectcontroller.php';
369
                $controller = new ObjectController($this->_objectHandler);
370
371
                if ((!is_array($this->_actions)) || in_array('edit', $this->_actions)) {
372
                    $actions[] = $controller->getEditItemLink($object, false, true, $this->_userSide);
373
                }
374
                if ((!is_array($this->_actions)) || in_array('delete', $this->_actions)) {
375
                    $actions[] = $controller->getDeleteItemLink($object, false, true, $this->_userSide);
376
                }
@@ 374-376 (lines=3) @@
371
                if ((!is_array($this->_actions)) || in_array('edit', $this->_actions)) {
372
                    $actions[] = $controller->getEditItemLink($object, false, true, $this->_userSide);
373
                }
374
                if ((!is_array($this->_actions)) || in_array('delete', $this->_actions)) {
375
                    $actions[] = $controller->getDeleteItemLink($object, false, true, $this->_userSide);
376
                }
377
                $aObject['actions'] = $actions;
378
379
                $this->_tpl->assign('smartobject_actions_column_width', count($actions) * 30);