Code Duplication    Length = 10-10 lines in 2 locations

src/Kunstmaan/NodeBundle/AdminList/NodeAdminListConfigurator.php 1 location

@@ 146-155 (lines=10) @@
143
     *
144
     * @return array
145
     */
146
    public function getEditUrlFor($item)
147
    {
148
        /* @var Node $node */
149
        $node = $item->getNode();
150
151
        return array(
152
            'path' => 'KunstmaanNodeBundle_nodes_edit',
153
            'params' => array('id' => $node->getId()),
154
        );
155
    }
156
157
    /**
158
     * @return bool

src/Kunstmaan/ArticleBundle/AdminList/AbstractArticlePageAdminListConfigurator.php 1 location

@@ 121-130 (lines=10) @@
118
     *
119
     * @return array
120
     */
121
    public function getEditUrlFor($item)
122
    {
123
        /* @var Node $node */
124
        $node = $item->getNode();
125
126
        return array(
127
            'path' => 'KunstmaanNodeBundle_nodes_edit',
128
            'params' => array('id' => $node->getId()),
129
        );
130
    }
131
132
    /**
133
     * Get the delete url for the given $item