Code Duplication    Length = 9-10 lines in 2 locations

src/Traits/LoadsTranslatedCachedRoutes.php 1 location

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

src/Traits/TranslatedRouteCommandContext.php 1 location

@@ 54-63 (lines=10) @@
51
     *
52
     * @return string
53
     */
54
    protected function makeLocaleRoutesPath($locale = null)
55
    {
56
        $path = $this->laravel->getCachedRoutesPath();
57
        if ($locale === null) {
58
            return $path;
59
        }
60
        $path = substr($path, 0, -4).'_'.$locale.'.php';
61
62
        return $path;
63
    }
64
65
    /**
66
     * The env key that the forced locale for routing is stored in.