Code Duplication    Length = 3-3 lines in 3 locations

src/Connection.php 3 locations

@@ 301-303 (lines=3) @@
298
    protected function handleStartHeaderCommand($name, $content)
299
    {
300
        // Check if status is unfolding.
301
        if ($this->state === self::STATUS_UNFOLDING) {
302
            $this->message = $this->message->withAddedHeader($this->foldHeader, $this->foldBuffer);
303
        }
304
305
        $this->foldBuffer = $content;
306
        $this->foldHeader = $name;
@@ 313-315 (lines=3) @@
310
    protected function handleStartBodyCommand()
311
    {
312
        // Check if status is unfolding.
313
        if ($this->state === self::STATUS_UNFOLDING) {
314
            $this->message = $this->message->withAddedHeader($this->foldHeader, $this->foldBuffer);
315
        }
316
        $this->state = self::STATUS_BODY;
317
318
    }
@@ 323-325 (lines=3) @@
320
    protected function handleEndBodyCommand()
321
    {
322
        // Check if status is unfolding.
323
        if ($this->state === self::STATUS_UNFOLDING) {
324
            $this->message = $this->message->withAddedHeader($this->foldHeader, $this->foldBuffer);
325
        }
326
327
        $this->state = self::STATUS_PROCESSING;
328
        /**