Code Duplication    Length = 10-10 lines in 3 locations

src/Console/StartWebSocketServer.php 3 locations

@@ 124-133 (lines=10) @@
121
     *
122
     * @return $this
123
     */
124
    protected function configureHttpLogger()
125
    {
126
        $this->laravel->singleton(HttpLogger::class, function () {
127
            return (new HttpLogger($this->output))
128
                ->enable($this->option('debug') ?: config('app.debug'))
129
                ->verbose($this->output->isVerbose());
130
        });
131
132
        return $this;
133
    }
134
135
    /**
136
     * Configure the logger for messages.
@@ 140-149 (lines=10) @@
137
     *
138
     * @return $this
139
     */
140
    protected function configureMessageLogger()
141
    {
142
        $this->laravel->singleton(WebsocketsLogger::class, function () {
143
            return (new WebsocketsLogger($this->output))
144
                ->enable($this->option('debug') ?: config('app.debug'))
145
                ->verbose($this->output->isVerbose());
146
        });
147
148
        return $this;
149
    }
150
151
    /**
152
     * Configure the connection logger.
@@ 156-165 (lines=10) @@
153
     *
154
     * @return $this
155
     */
156
    protected function configureConnectionLogger()
157
    {
158
        $this->laravel->bind(ConnectionLogger::class, function () {
159
            return (new ConnectionLogger($this->output))
160
                ->enable(config('app.debug'))
161
                ->verbose($this->output->isVerbose());
162
        });
163
164
        return $this;
165
    }
166
167
    /**
168
     * Configure the Redis PubSub handler.