Code Duplication    Length = 6-6 lines in 2 locations

projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location

@@ 292-297 (lines=6) @@
289
			}
290
			$this->log[$plugin][] = __( 'Plugin deactivated.', 'jetpack' );
291
		}
292
		if ( ! $this->bulk && isset( $error ) ) {
293
			if ( $permission_error ) {
294
				return new WP_Error( 'unauthorized_error', $error, 403 );
295
			}
296
297
			return new WP_Error( 'deactivation_error', $error );
298
		}
299
	}
300

projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-v1-2-endpoint.php 1 location

@@ 209-214 (lines=6) @@
206
			}
207
			$this->log[ $plugin ][] = __( 'Plugin deactivated.', 'jetpack' );
208
		}
209
		if ( ! $this->bulk && isset( $error ) ) {
210
			if ( $permission_error ) {
211
				return new WP_Error( 'unauthorized_error', $error, 403 );
212
			}
213
214
			return new WP_Error( 'deactivation_error', $error );
215
		}
216
	}
217
}