Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 271-274 (lines=4) @@
268
				continue;
269
			}
270
271
			if ( ! Jetpack::is_plugin_active( $plugin ) ) {
272
				$error = $this->log[$plugin]['error'] = __( 'The Plugin is already deactivated.', 'jetpack' );
273
				continue;
274
			}
275
276
			deactivate_plugins( $plugin, false, $this->network_wide );
277
@@ 283-286 (lines=4) @@
280
				$success &= ! is_plugin_active_for_network( $plugin );
281
			}
282
283
			if ( ! $success ) {
284
				$error = $this->log[$plugin]['error'] = __( 'There was an error deactivating your plugin', 'jetpack' );
285
				continue;
286
			}
287
			$this->log[$plugin][] = __( 'Plugin deactivated.', 'jetpack' );
288
		}
289
		if ( ! $this->bulk && isset( $error ) ) {