Code Duplication    Length = 3-5 lines in 3 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/custom-css/custom-css/preprocessors/scss.inc.php 1 location

@@ 2299-2303 (lines=5) @@
2296
		foreach ($firstList[2] as $key => $item) {
2297
			$list = array("list", "", array($item));
2298
			foreach ($args as $arg) {
2299
				if (isset($arg[2][$key])) {
2300
					$list[2][] = $arg[2][$key];
2301
				} else {
2302
					break 2;
2303
				}
2304
			}
2305
			$lists[] = $list;
2306
		}

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];