Code Duplication    Length = 8-8 lines in 2 locations

projects/packages/autoloader/tests/php/data/plugins/plugin_v2_2_0/vendor/class-plugins-handler.php 1 location

@@ 42-49 (lines=8) @@
39
	 *
40
	 * @return array The paths of the active sitewide plugins or an empty array.
41
	 */
42
	protected function get_multisite_plugins_paths() {
43
		$plugin_slugs = is_multisite()
44
			? array_keys( get_site_option( 'active_sitewide_plugins', array() ) )
45
			: array();
46
47
		$plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
48
		return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
49
	}
50
51
	/**
52
	 * Returns an array containing the paths of the currently active plugins.

projects/packages/autoloader/tests/php/data/plugins/plugin_v2_4_0/vendor/jetpack-autoloader/class-plugins-handler.php 1 location

@@ 44-51 (lines=8) @@
41
	 *
42
	 * @return array The paths of the active sitewide plugins or an empty array.
43
	 */
44
	protected function get_multisite_plugins_paths() {
45
		$plugin_slugs = is_multisite()
46
			? array_keys( get_site_option( 'active_sitewide_plugins', array() ) )
47
			: array();
48
49
		$plugin_slugs = array_filter( $plugin_slugs, array( $this, 'is_directory_plugin' ) );
50
		return array_map( array( $this, 'create_plugin_path' ), $plugin_slugs );
51
	}
52
53
	/**
54
	 * Returns an array containing the paths of the currently active plugins.