Code Duplication    Length = 8-8 lines in 2 locations

src/Kunstmaan/UserManagementBundle/AdminList/AbstractSettingsAdminListConfigurator.php 1 location

@@ 19-26 (lines=8) @@
16
     *
17
     * @return string
18
     */
19
    public function getPathByConvention($suffix = null)
20
    {
21
        if (empty($suffix)) {
22
            return sprintf('KunstmaanUserManagementBundle_settings_%ss', strtolower($this->getEntityName()));
23
        }
24
25
        return sprintf('KunstmaanUserManagementBundle_settings_%ss_%s', strtolower($this->getEntityName()), $suffix);
26
    }
27
28
    /**
29
     * {@inheritdoc}

src/Kunstmaan/TranslatorBundle/AdminList/TranslationAdminListConfigurator.php 1 location

@@ 138-145 (lines=8) @@
135
     *
136
     * @return string
137
     */
138
    public function getPathByConvention($suffix = null)
139
    {
140
        if (empty($suffix)) {
141
            return sprintf('%s_settings_%ss', $this->getBundleName(), strtolower($this->getEntityName()));
142
        }
143
144
        return sprintf('%s_settings_%ss_%s', $this->getBundleName(), strtolower($this->getEntityName()), $suffix);
145
    }
146
147
    /**
148
     * {@inheritdoc}