Code Duplication    Length = 3-3 lines in 2 locations

modules/sharedaddy/sharing-service.php 1 location

@@ 341-343 (lines=3) @@
338
				}
339
			}
340
341
			if ( $data['show'] = array_intersect( $data['show'], $shows ) ) {
342
				$options['global']['show'] = $data['show'];
343
			}
344
		}
345
346
		update_option( 'sharing-options', $options );

modules/likes/jetpack-likes-settings.php 1 location

@@ 658-660 (lines=3) @@
655
				}
656
			}
657
658
			if ( $data['show'] = array_intersect( $data['show'], $shows ) ) {
659
				$options['global']['show'] = $data['show'];
660
			}
661
		} else {
662
			$options['global']['show'] = array();
663
		}