Code Duplication    Length = 10-10 lines in 6 locations

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

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

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