Code Duplication    Length = 9-9 lines in 2 locations

src/Traits/LoadsTranslatedCachedRoutes.php 1 location

@@ 55-63 (lines=9) @@
52
     *
53
     * @return string
54
     */
55
    protected function makeLocaleRoutesPath($locale = null)
56
    {
57
        $path = $this->getDefaultCachedRoutePath();
58
        if (!$locale) {
59
            return $path;
60
        }
61
62
        return substr($path, 0, -4).'_'.$locale.'.php';
63
    }
64
65
    /**
66
     * Returns the path to the standard cached routes file.

src/Traits/TranslatedRouteCommandContext.php 1 location

@@ 53-61 (lines=9) @@
50
     * 
51
     * @return string
52
     */
53
    protected function makeLocaleRoutesPath($locale = null)
54
    {
55
        $path = $this->laravel->getCachedRoutesPath();
56
        if (!$locale) {
57
            return $path;
58
        }
59
        $path = substr($path, 0, -4).'_'.$locale.'.php';
60
61
        return $path;
62
    }
63
64
    protected function getLocaleEnvKey()