Code Duplication    Length = 7-7 lines in 2 locations

src/ZfcDatagrid/Column/Action/AbstractAction.php 1 location

@@ 109-115 (lines=7) @@
106
        $link = $this->getLink();
107
108
        // Replace placeholders
109
        if (strpos($this->getLink(), self::ROW_ID_PLACEHOLDER) !== false) {
110
            $id = '';
111
            if (isset($row['idConcated'])) {
112
                $id = $row['idConcated'];
113
            }
114
            $link = str_replace(self::ROW_ID_PLACEHOLDER, $id, $link);
115
        }
116
117
        foreach ($this->getLinkColumnPlaceholders() as $col) {
118
            $link = str_replace(':' . $col->getUniqueId() . ':', $row[$col->getUniqueId()], $link);

src/ZfcDatagrid/Column/Formatter/HtmlTag.php 1 location

@@ 272-278 (lines=7) @@
269
        }
270
271
        // Replace placeholders
272
        if (strpos($link, self::ROW_ID_PLACEHOLDER) !== false) {
273
            $id = '';
274
            if (isset($row['idConcated'])) {
275
                $id = $row['idConcated'];
276
            }
277
            $link = str_replace(self::ROW_ID_PLACEHOLDER, rawurlencode($id), $link);
278
        }
279
280
        foreach ($this->getLinkColumnPlaceholders() as $col) {
281
            $link = str_replace(':' . $col->getUniqueId() . ':', rawurlencode($row[$col->getUniqueId()]), $link);