Code Duplication    Length = 10-10 lines in 3 locations

src/Console/StartWebSocketServer.php 3 locations

@@ 80-89 (lines=10) @@
77
        return $this;
78
    }
79
80
    protected function configureHttpLogger()
81
    {
82
        app()->singleton(HttpLogger::class, function () {
83
            return (new HttpLogger($this->output))
84
                ->enable($this->option('debug') ?: config('app.debug'))
85
                ->verbose($this->output->isVerbose());
86
        });
87
88
        return $this;
89
    }
90
91
    protected function configureMessageLogger()
92
    {
@@ 91-100 (lines=10) @@
88
        return $this;
89
    }
90
91
    protected function configureMessageLogger()
92
    {
93
        app()->singleton(WebsocketsLogger::class, function () {
94
            return (new WebsocketsLogger($this->output))
95
                ->enable($this->option('debug') ?: config('app.debug'))
96
                ->verbose($this->output->isVerbose());
97
        });
98
99
        return $this;
100
    }
101
102
    protected function configureConnectionLogger()
103
    {
@@ 102-111 (lines=10) @@
99
        return $this;
100
    }
101
102
    protected function configureConnectionLogger()
103
    {
104
        app()->bind(ConnectionLogger::class, function () {
105
            return (new ConnectionLogger($this->output))
106
                ->enable(config('app.debug'))
107
                ->verbose($this->output->isVerbose());
108
        });
109
110
        return $this;
111
    }
112
113
    public function configureRestartTimer()
114
    {