Code Duplication    Length = 10-10 lines in 6 locations

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

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

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

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

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

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