Code Duplication    Length = 4-4 lines in 2 locations

json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 2 locations

@@ 259-262 (lines=4) @@
256
				continue;
257
			}
258
259
			if ( ! Jetpack::is_plugin_active( $plugin ) ) {
260
				$error = $this->log[ $plugin ]['error'] = __( 'The Plugin is already deactivated.', 'jetpack' );
261
				continue;
262
			}
263
264
			deactivate_plugins( $plugin, false, $this->network_wide );
265
@@ 271-274 (lines=4) @@
268
				$success &= ! is_plugin_active_for_network( $plugin );
269
			}
270
271
			if ( ! $success ) {
272
				$error = $this->log[ $plugin ]['error'] = __( 'There was an error deactivating your plugin', 'jetpack' );
273
				continue;
274
			}
275
			$this->log[ $plugin ][] = __( 'Plugin deactivated.', 'jetpack' );
276
		}
277
		if ( ! $this->bulk && isset( $error ) ) {