Code Duplication    Length = 4-6 lines in 2 locations

core/vendor/symfony/debug/DebugClassLoader.php 2 locations

@@ 279-282 (lines=4) @@
276
                continue;
277
            }
278
279
            if ($parent && isset(self::$finalMethods[$parent][$method->name])) {
280
                list($declaringClass, $message) = self::$finalMethods[$parent][$method->name];
281
                $deprecations[] = sprintf('The "%s::%s()" method is considered final%s. It may change without further notice as of its next major version. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
282
            }
283
284
            if (isset(self::$internalMethods[$class][$method->name])) {
285
                list($declaringClass, $message) = self::$internalMethods[$class][$method->name];
@@ 284-289 (lines=6) @@
281
                $deprecations[] = sprintf('The "%s::%s()" method is considered final%s. It may change without further notice as of its next major version. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
282
            }
283
284
            if (isset(self::$internalMethods[$class][$method->name])) {
285
                list($declaringClass, $message) = self::$internalMethods[$class][$method->name];
286
                if (\strncmp($ns, $declaringClass, $len)) {
287
                    $deprecations[] = sprintf('The "%s::%s()" method is considered internal%s. It may change without further notice. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
288
                }
289
            }
290
291
            // Detect method annotations
292
            if (false === $doc = $method->getDocComment()) {