Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 174-185 (lines=12) @@
171
     *
172
     * @return string
173
     */
174
    protected function getAttributesString(array $row)
175
    {
176
        $attributes = [];
177
        foreach ($this->getAttributes() as $attrKey => $attrValue) {
178
            if ('href' === $attrKey) {
179
                $attrValue = $this->getLinkReplaced($row);
180
            }
181
            $attributes[] = $attrKey.'="'.$attrValue.'"';
182
        }
183
184
        return implode(' ', $attributes);
185
    }
186
187
    /**
188
     * Set the title attribute.

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

@@ 169-180 (lines=12) @@
166
     *
167
     * @return string
168
     */
169
    protected function getAttributesString(AbstractColumn $col)
170
    {
171
        $attributes = [];
172
        foreach ($this->getAttributes() as $attrKey => $attrValue) {
173
            if ('href' === $attrKey) {
174
                $attrValue = $this->getLinkReplaced($col);
175
            }
176
            $attributes[] = $attrKey.'="'.$attrValue.'"';
177
        }
178
179
        return implode(' ', $attributes);
180
    }
181
182
    /**
183
     * This is needed public for rowClickAction...