Code Duplication    Length = 10-10 lines in 2 locations

class/Table.php 1 location

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

class/TreeTable.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) {