Code Duplication    Length = 8-9 lines in 2 locations

Context/Context.php 2 locations

@@ 189-197 (lines=9) @@
186
     *
187
     * @deprecated since 2.1, to be removed in 3.0. Use {@link self::enableMaxDepth()} and {@link self::disableMaxDepth()} instead
188
     */
189
    public function setMaxDepth($maxDepth)
190
    {
191
        if (1 === func_num_args() || func_get_arg(1)) {
192
            @trigger_error(sprintf('%s is deprecated since version 2.1 and will be removed in 3.0. Use %s::enableMaxDepth() and %s::disableMaxDepth() instead.', __METHOD__, __CLASS__, __CLASS__), E_USER_DEPRECATED);
193
        }
194
        $this->maxDepth = $maxDepth;
195
196
        return $this;
197
    }
198
199
    /**
200
     * Gets the normalization max depth.
@@ 206-213 (lines=8) @@
203
     *
204
     * @deprecated since version 2.1, to be removed in 3.0. Use {@link self::isMaxDepthEnabled()} instead
205
     */
206
    public function getMaxDepth()
207
    {
208
        if (0 === func_num_args() || func_get_arg(0)) {
209
            @trigger_error(sprintf('%s is deprecated since version 2.1 and will be removed in 3.0. Use %s::isMaxDepthEnabled() instead.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
210
        }
211
212
        return $this->maxDepth;
213
    }
214
215
    public function enableMaxDepth()
216
    {