Code Duplication    Length = 3-5 lines in 2 locations

class.jetpack-cli.php 1 location

@@ 485-489 (lines=5) @@
482
				$action = 'get';
483
			} else if ( 'delete' == $args[0] && isset( $args[1] ) ) {
484
				$action = 'delete';
485
			} else if ( 'update' == $args[0] && isset( $args[1] ) ) {
486
				$action = 'update';
487
			} else {
488
				$action = 'list';
489
			}
490
		}
491
492
		// Bail if the option isn't found

modules/shortcodes/googleapps.php 1 location

@@ 154-156 (lines=3) @@
151
		$attr['height'] = $content_height = floor( $content_width * 3 / 4 );
152
	}
153
154
	if ( isset( $atts[0] ) && $atts[0] ) {
155
		$attr['src'] = $atts[0];
156
	}
157
158
	if ( $attr['src'] && preg_match( '!https?://(docs|drive|spreadsheets\d*|calendar|www)*\.google\.com/([-\w\./]+)\?([^"]+)!', $attr['src'], $matches ) ) {
159
		$attr['domain'] = $matches[1];