Code Duplication    Length = 10-10 lines in 2 locations

class/SmartObjectTable.php 1 location

@@ 337-346 (lines=10) @@
334
                        } else {
335
                            $value = $object->$method();
336
                        }
337
                    } else {
338
                        /**
339
                         * If the column is the identifier, then put a link on it
340
                         */
341
                        if ($column->getKeyName() == $this->_objectHandler->identifierName) {
342
                            $value = $object->getItemLink();
343
                        } else {
344
                            $value = $object->getVar($column->getKeyName());
345
                        }
346
                    }
347
348
                    $aColumn['value'] = $value;
349
                    $aColumn['class'] = $class;

class/SmartObjectTreeTable.php 1 location

@@ 83-92 (lines=10) @@
80
            if ($column->_customMethodForValue && method_exists($object, $column->_customMethodForValue)) {
81
                $method = $column->_customMethodForValue;
82
                $value  = $object->$method();
83
            } else {
84
                /**
85
                 * If the column is the identifier, then put a link on it
86
                 */
87
                if ($column->getKeyName() == $this->_objectHandler->identifierName) {
88
                    $value = $object->getItemLink();
89
                } else {
90
                    $value = $object->getVar($column->getKeyName());
91
                }
92
            }
93
94
            $space = '';
95
            if ($column->getKeyName() == $this->_objectHandler->identifierName) {