Code Duplication    Length = 15-15 lines in 2 locations

sources/Commands/TailCommand.php 2 locations

@@ 70-84 (lines=15) @@
67
     *
68
     * @return string
69
     */
70
    protected function getLocalPath()
71
    {
72
        switch ($this->laravel['config']['app.log']) {
73
        case 'single':
74
            return storage_path('logs/laravel.log');
75
76
        case 'daily':
77
            $date = Carbon::today()->format('Y-m-d');
78
79
            return storage_path("logs/laravel-{$date}.log");
80
81
        case 'syslog':
82
            throw new \RuntimeException('syslog not support');
83
        }
84
    }
85
86
    /**
87
     * Tail a local log file for the application.
@@ 121-135 (lines=15) @@
118
     *
119
     * @return string
120
     */
121
    protected function getRemotePathFromStorage()
122
    {
123
        switch ($this->laravel['config']['app.log']) {
124
        case 'single':
125
            return storage_path('logs/laravel.log');
126
127
        case 'daily':
128
            $date = Carbon::today()->format('Y-m-d');
129
130
            return storage_path("logs/laravel-{$date}.log");
131
132
        case 'syslog':
133
            throw new \RuntimeException('syslog not support');
134
        }
135
    }
136
137
    /**
138
     * Get the path to the Laravel install root.