Code Duplication    Length = 10-10 lines in 6 locations

src/Kunstmaan/AdminListBundle/AdminList/Configurator/AbstractDoctrineDBALAdminListConfigurator.php 2 locations

@@ 58-67 (lines=10) @@
55
     *
56
     * @return array
57
     */
58
    public function getEditUrlFor($item)
59
    {
60
        $params = array('id' => $item['id']);
61
        $params = array_merge($params, $this->getExtraParameters());
62
63
        return array(
64
            'path'   => $this->getPathByConvention($this::SUFFIX_EDIT),
65
            'params' => $params
66
        );
67
    }
68
69
    /**
70
     * Get the delete url for the given $item
@@ 76-85 (lines=10) @@
73
     *
74
     * @return array
75
     */
76
    public function getDeleteUrlFor($item)
77
    {
78
        $params = array('id' => $item['id']);
79
        $params = array_merge($params, $this->getExtraParameters());
80
81
        return array(
82
            'path'   => $this->getPathByConvention($this::SUFFIX_DELETE),
83
            'params' => $params
84
        );
85
    }
86
87
    /**
88
     * @return Pagerfanta

src/Kunstmaan/LeadGenerationBundle/AdminList/RulesAdminListConfigurator.php 2 locations

@@ 65-74 (lines=10) @@
62
     *
63
     * @return array
64
     */
65
    public function getEditUrlFor($item)
66
    {
67
        $params = array('id' => $item->getId(), 'popup' => $this->getPopupId());
68
        $params = array_merge($params, $this->getExtraParameters());
69
70
        return array(
71
            'path' => 'kunstmaanleadgenerationbundle_admin_rule_abstractrule_edit',
72
            'params' => $params
73
        );
74
    }
75
76
    /**
77
     * Get the delete url for the given $item
@@ 83-92 (lines=10) @@
80
     *
81
     * @return array
82
     */
83
    public function getDeleteUrlFor($item)
84
    {
85
        $params = array('id' => $item->getId(), 'popup' => $this->getPopupId());
86
        $params = array_merge($params, $this->getExtraParameters());
87
88
        return array(
89
            'path' => 'kunstmaanleadgenerationbundle_admin_rule_abstractrule_delete',
90
            'params' => $params
91
        );
92
    }
93
94
    /**
95
     * Configure the visible columns

src/Kunstmaan/AdminListBundle/AdminList/Configurator/AbstractDoctrineORMAdminListConfigurator.php 2 locations

@@ 66-75 (lines=10) @@
63
     *
64
     * @return array
65
     */
66
    public function getEditUrlFor($item)
67
    {
68
        $params = array('id' => $item->getId());
69
        $params = array_merge($params, $this->getExtraParameters());
70
71
        return array(
72
            'path'   => $this->getPathByConvention($this::SUFFIX_EDIT),
73
            'params' => $params
74
        );
75
    }
76
77
    /**
78
     * Get the delete url for the given $item
@@ 84-93 (lines=10) @@
81
     *
82
     * @return array
83
     */
84
    public function getDeleteUrlFor($item)
85
    {
86
        $params = array('id' => $item->getId());
87
        $params = array_merge($params, $this->getExtraParameters());
88
89
        return array(
90
            'path'   => $this->getPathByConvention($this::SUFFIX_DELETE),
91
            'params' => $params
92
        );
93
    }
94
95
    /**
96
     * @return Pagerfanta