Code Duplication    Length = 9-9 lines in 2 locations

src/Traits/LoadsTranslatedCachedRoutes.php 1 location

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

src/Traits/TranslatedRouteCommandContext.php 1 location

@@ 47-55 (lines=9) @@
44
     * @param string $locale
45
     * @return string
46
     */
47
    protected function makeLocaleRoutesPath($locale = null)
48
    {
49
        $path = $this->laravel->getCachedRoutesPath();
50
        if ( ! $locale ) {
51
            return $path;
52
        }
53
        $path = substr($path, 0, -4) . '_' . $locale . '.php';
54
        return $path;
55
    }
56
57
    protected function getLocaleEnvKey()
58
    {