Code Duplication    Length = 10-10 lines in 3 locations

src/Console/StartWebSocketServer.php 3 locations

@@ 70-79 (lines=10) @@
67
        return $this;
68
    }
69
70
    protected function configureHttpLogger()
71
    {
72
        app()->singleton(HttpLogger::class, function () {
73
            return (new HttpLogger($this->output))
74
                ->enable(config('app.debug'))
75
                ->verbose($this->output->isVerbose());
76
        });
77
78
        return $this;
79
    }
80
81
    protected function configureMessageLogger()
82
    {
@@ 81-90 (lines=10) @@
78
        return $this;
79
    }
80
81
    protected function configureMessageLogger()
82
    {
83
        app()->singleton(WebsocketsLogger::class, function () {
84
            return (new WebsocketsLogger($this->output))
85
                ->enable(config('app.debug'))
86
                ->verbose($this->output->isVerbose());
87
        });
88
89
        return $this;
90
    }
91
92
    protected function configureConnectionLogger()
93
    {
@@ 92-101 (lines=10) @@
89
        return $this;
90
    }
91
92
    protected function configureConnectionLogger()
93
    {
94
        app()->bind(ConnectionLogger::class, function () {
95
            return (new ConnectionLogger($this->output))
96
                ->enable(config('app.debug'))
97
                ->verbose($this->output->isVerbose());
98
        });
99
100
        return $this;
101
    }
102
103
    protected function registerEchoRoutes()
104
    {