Code Duplication    Length = 3-3 lines in 2 locations

class/SmartObjectTable.php 2 locations

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