Code Duplication    Length = 7-7 lines in 2 locations

packages/autoloader/src/CustomAutoloaderPlugin.php 2 locations

@@ 140-146 (lines=7) @@
137
		}
138
139
		// Reuse our own suffix, if any.
140
		if ( is_readable( $vendorPath . '/autoload_packages.php' ) ) {
141
			// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
142
			$content = file_get_contents( $vendorPath . '/autoload_packages.php' );
143
			if ( preg_match( '/^namespace Automattic\\\\Jetpack\\\\Autoloader\\\\jp([^;\s]+);/m', $content, $match ) ) {
144
				return $match[1];
145
			}
146
		}
147
148
		// Reuse Composer's suffix, if any.
149
		if ( is_readable( $vendorPath . '/autoload.php' ) ) {
@@ 149-155 (lines=7) @@
146
		}
147
148
		// Reuse Composer's suffix, if any.
149
		if ( is_readable( $vendorPath . '/autoload.php' ) ) {
150
			// phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
151
			$content = file_get_contents( $vendorPath . '/autoload.php' );
152
			if ( preg_match( '{ComposerAutoloaderInit([^:\s]+)::}', $content, $match ) ) {
153
				return $match[1];
154
			}
155
		}
156
157
		// Generate a random suffix.
158
		return md5( uniqid( '', true ) );