Code Duplication    Length = 7-7 lines in 2 locations

class/Table.php 1 location

@@ 312-318 (lines=7) @@
309
                foreach ($this->_columns as $column) {
310
                    $aColumn = [];
311
312
                    if (0 == $i) {
313
                        $class = 'head';
314
                    } elseif (0 == $i % 2) {
315
                        $class = 'even';
316
                    } else {
317
                        $class = 'odd';
318
                    }
319
                    if (method_exists($object, 'initiateCustomFields')) {
320
                        //$object->initiateCustomFields();
321
                    }

class/TreeTable.php 1 location

@@ 72-78 (lines=7) @@
69
        foreach ($this->_columns as $column) {
70
            $aColumn = [];
71
72
            if (0 == $i) {
73
                $class = 'head';
74
            } elseif (0 == $i % 2) {
75
                $class = 'even';
76
            } else {
77
                $class = 'odd';
78
            }
79
80
            if ($column->_customMethodForValue && method_exists($object, $column->_customMethodForValue)) {
81
                $method = $column->_customMethodForValue;