Code Duplication    Length = 6-6 lines in 3 locations

src/View/View/AbstractView.php 3 locations

@@ 183-188 (lines=6) @@
180
                }
181
                $this->_context_[$key] = $value;
182
                return $this;
183
            case View::ADD_ONLY:
184
                if (array_key_exists($key, $this->_context_)) {
185
                    return $this;
186
                }
187
                $this->_context_[$key] = $value;
188
                return $this;
189
            case View::REPLACE_ONLY:
190
                if (! array_key_exists($key, $this->_context_)) {
191
                    return $this;
@@ 189-194 (lines=6) @@
186
                }
187
                $this->_context_[$key] = $value;
188
                return $this;
189
            case View::REPLACE_ONLY:
190
                if (! array_key_exists($key, $this->_context_)) {
191
                    return $this;
192
                }
193
                $this->_context_[$key] = $value;
194
                return $this;
195
            case View::MERGE_ONLY:
196
                if (! array_key_exists($key, $this->_context_)) {
197
                    return $this;
@@ 195-200 (lines=6) @@
192
                }
193
                $this->_context_[$key] = $value;
194
                return $this;
195
            case View::MERGE_ONLY:
196
                if (! array_key_exists($key, $this->_context_)) {
197
                    return $this;
198
                }
199
                $this->_context_ = array_merge_recursive($this->_context_, [$key => $value]);
200
                return $this;
201
            default:
202
                throw new InvalidContextAddingBehavior(
203
                    sprintf(