Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 97-104 (lines=8) @@
94
     *
95
     * @return string
96
     */
97
    public function getPathByConvention($suffix = null)
98
    {
99
        if (empty($suffix)) {
100
            return sprintf('%s_settings_%ss', $this->getBundleName(), strtolower($this->getEntityName()));
101
        }
102
103
        return sprintf('%s_settings_%ss_%s', $this->getBundleName(), strtolower($this->getEntityName()), $suffix);
104
    }
105
106
    /**
107
     * {@inheritdoc}

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}