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

@@ 167-169 (lines=3) @@
164
		$attr['height'] = floor( $content_width * 3 / 4 );
165
	}
166
167
	if ( isset( $atts[0] ) && $atts[0] ) {
168
		$attr['src'] = $atts[0];
169
	}
170
171
	if ( $attr['src'] && preg_match( '!https?://(docs|drive|spreadsheets\d*|calendar|www)*\.google\.com/([-\w\./]+)\?([^"]+)!', $attr['src'], $matches ) ) {
172
		$attr['domain'] = $matches[1];

class.jetpack-cli.php 1 location

@@ 711-715 (lines=5) @@
708
				$action = 'get';
709
			} else if ( 'delete' == $args[0] && isset( $args[1] ) ) {
710
				$action = 'delete';
711
			} else if ( 'update' == $args[0] && isset( $args[1] ) ) {
712
				$action = 'update';
713
			} else {
714
				$action = 'list';
715
			}
716
		}
717
718
		// Bail if the option isn't found