Code Duplication    Length = 4-4 lines in 2 locations

class.jetpack-autoupdate.php 2 locations

@@ 147-150 (lines=4) @@
144
		$instance = Jetpack::init();
145
		$log = array();
146
		// Bump numbers
147
		if ( ! empty( $this->success['plugin'] ) ) {
148
			$instance->stat( 'autoupdates/plugin-success', count( $this->success['plugin'] ) );
149
			$log['plugins_success'] = $this->success['plugin'];
150
		}
151
152
		if ( ! empty( $this->failed['plugin'] ) ) {
153
			$instance->stat( 'autoupdates/plugin-fail', count( $this->failed['plugin'] ) );
@@ 152-155 (lines=4) @@
149
			$log['plugins_success'] = $this->success['plugin'];
150
		}
151
152
		if ( ! empty( $this->failed['plugin'] ) ) {
153
			$instance->stat( 'autoupdates/plugin-fail', count( $this->failed['plugin'] ) );
154
			$log['plugins_failed'] = $this->failed['plugin'];
155
		}
156
157
		if ( ! empty( $this->success['theme'] ) ) {
158
			$instance->stat( 'autoupdates/theme-success', count( $this->success['theme'] ) );