Code Duplication    Length = 7-7 lines in 2 locations

packages/autoloader/src/CustomAutoloaderPlugin.php 2 locations

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