Code Duplication    Length = 8-8 lines in 2 locations

projects/packages/analyzer/scripts/core-definitions.php 2 locations

@@ 46-53 (lines=8) @@
43
						$declaration->path . ', ' .
44
						$declaration->line
45
					);
46
				} elseif ( $declaration instanceof Declarations\Class_Property ) {
47
48
					$io->write(
49
						$declaration->class_name . '::' . $declaration->prop_name . ', ' .
50
						$declaration->path . ', ' .
51
						$declaration->line
52
					);
53
				} elseif ( $declaration instanceof Declarations\Class_Method ) {
54
55
					$io->write(
56
						$declaration->class_name . '::' . $declaration->method_name . ', ' .
@@ 60-67 (lines=8) @@
57
						$declaration->path . ', ' .
58
						$declaration->line
59
					);
60
				} elseif ( $declaration instanceof Declarations\Class_Const ) {
61
62
					$io->write(
63
						$declaration->class_name . '::' . $declaration->const_name . ', ' .
64
						$declaration->path . ', ' .
65
						$declaration->line
66
					);
67
				}
68
			}
69
		} catch ( Exception $e ) {
70
			$io->writeError( 'Exception caught' );