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

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