lib/Report/Generator/TableGenerator.php
private function resolveCompareColumnName(Row $row, $name, $index = 1)
    {
        if (!isset($row[$name])) {
            return $name;
        }

        $newName = $name . '#' . (string) $index++;

        if (!isset($row[$newName])) {
            return $newName;
        }

        return $this->resolveCompareColumnName($row, $name, $index);
    }
private function resolveCompareColumnName(Row $row, $name, $index = 1)
    {
        if (!isset($row[$name])) {
            return $name;
        }

        $newName = $name . '#' . (string) $index++;

        if (!isset($row[$newName])) {
            return $newName;
        }

        return $this->resolveCompareColumnName($row, $name, $index);
    }
private function resolveCompareColumnName ( Row $ row , $ name , $ index = 1 ) { if ( ! isset ( $ row [ $ name ] ) ) { return $ name ; } $ newName = $ name . '#' . ( string ) $ index ++ ; if ( ! isset ( $ row [ $ newName ] ) ) { return $ newName ; } return $ this -> resolveCompareColumnName ( $ row , $ name , $ index ) ; }
Recursively resolve a comparison column - find a column name that
doesn't already exist by adding and incrementing an index.

@param Row $row
@param int $index

@return string
Recursively resolve a comparison column - find a column name that doesn t already exist by adding and incrementing an index .