Code Duplication    Length = 3-3 lines in 2 locations

projects/packages/connection/src/class-manager.php 2 locations

@@ 1420-1422 (lines=3) @@
1417
	 */
1418
	public function delete_all_connection_tokens( $ignore_connected_plugins = false ) {
1419
		// refuse to delete if we're not the last Jetpack plugin installed.
1420
		if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) {
1421
			return false;
1422
		}
1423
1424
		/**
1425
		 * Fires upon the disconnect attempt.
@@ 1467-1469 (lines=3) @@
1464
	 * @return bool True if disconnected successfully, false otherwise.
1465
	 */
1466
	public function disconnect_site_wpcom( $ignore_connected_plugins = false ) {
1467
		if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) {
1468
			return false;
1469
		}
1470
1471
		/**
1472
		 * Fires upon the disconnect attempt.