Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 218-223 (lines=6) @@
215
    protected function getAttributesString(array $row)
216
    {
217
        $attributes = [];
218
        foreach ($this->getAttributes() as $attrKey => $attrValue) {
219
            if ('href' === $attrKey) {
220
                $attrValue = $this->getLinkReplaced($row);
221
            }
222
            $attributes[] = $attrKey . '="' . $attrValue . '"';
223
        }
224
225
        return implode(' ', $attributes);
226
    }

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

@@ 245-250 (lines=6) @@
242
            ));
243
        }
244
245
        foreach ($this->getAttributes() as $attrKey => $attrValue) {
246
            if ('href' === $attrKey) {
247
                $attrValue = $this->getLinkReplaced($col);
248
            }
249
            $attributes[] = $attrKey . '="' . $attrValue . '"';
250
        }
251
252
        return implode(' ', $attributes);
253
    }