Code Duplication    Length = 4-4 lines in 3 locations

src/Conversation.php 3 locations

@@ 110-113 (lines=4) @@
107
    private function performStep($sessionId, Step $step, Context $context, $currentIteration)
108
    {
109
        switch (true) {
110
            case $step instanceof Merge:
111
                $newContext = $this->actionMapping->merge($sessionId, $context, $step);
112
                $context = $this->converse($sessionId, null, $newContext, --$currentIteration);
113
                break;
114
            case $step instanceof Message:
115
                $this->actionMapping->say($sessionId, $context, $step);
116
                $context = $this->converse($sessionId, null, $context, --$currentIteration);
@@ 114-117 (lines=4) @@
111
                $newContext = $this->actionMapping->merge($sessionId, $context, $step);
112
                $context = $this->converse($sessionId, null, $newContext, --$currentIteration);
113
                break;
114
            case $step instanceof Message:
115
                $this->actionMapping->say($sessionId, $context, $step);
116
                $context = $this->converse($sessionId, null, $context, --$currentIteration);
117
                break;
118
            case $step instanceof Action:
119
                $newContext = $this->actionMapping->action($sessionId, $context, $step);
120
                $context = $this->converse($sessionId, null, $newContext, --$currentIteration);
@@ 118-121 (lines=4) @@
115
                $this->actionMapping->say($sessionId, $context, $step);
116
                $context = $this->converse($sessionId, null, $context, --$currentIteration);
117
                break;
118
            case $step instanceof Action:
119
                $newContext = $this->actionMapping->action($sessionId, $context, $step);
120
                $context = $this->converse($sessionId, null, $newContext, --$currentIteration);
121
                break;
122
            case $step instanceof Stop:
123
                $this->actionMapping->stop($sessionId, $context, $step);
124
                break;