Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 277-282 (lines=6) @@
274
			}
275
			$this->log[ $plugin ][] = __( 'Plugin deactivated.', 'jetpack' );
276
		}
277
		if ( ! $this->bulk && isset( $error ) ) {
278
			if ( $permission_error ) {
279
				return new WP_Error( 'unauthorized_error', $error, 403 );
280
			}
281
			return new WP_Error( 'deactivation_error', $error );
282
		}
283
	}
284
285
	protected function update() {

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

@@ 173-178 (lines=6) @@
170
			}
171
			$this->log[ $plugin ][] = __( 'Plugin deactivated.', 'jetpack' );
172
		}
173
		if ( ! $this->bulk && isset( $error ) ) {
174
			if ( $permission_error ) {
175
				return new WP_Error( 'unauthorized_error', $error, 403 );
176
			}
177
			return new WP_Error( 'deactivation_error', $error );
178
		}
179
	}
180
}
181