Code Duplication    Length = 3-5 lines in 3 locations

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

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

class.jetpack-cli.php 1 location

@@ 588-592 (lines=5) @@
585
				$action = 'get';
586
			} else if ( 'delete' == $args[0] && isset( $args[1] ) ) {
587
				$action = 'delete';
588
			} else if ( 'update' == $args[0] && isset( $args[1] ) ) {
589
				$action = 'update';
590
			} else {
591
				$action = 'list';
592
			}
593
		}
594
595
		// Bail if the option isn't found