Code Duplication    Length = 9-10 lines in 2 locations

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.

src/Traits/LoadsTranslatedCachedRoutes.php 1 location

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