Code Duplication    Length = 7-7 lines in 2 locations

projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-themes-modify-endpoint.php 1 location

@@ 20-26 (lines=7) @@
17
				$this->autoupdate_off();
18
			}
19
		}
20
		if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) {
21
			if ( $args['autoupdate_translations'] ) {
22
				$this->autoupdate_translations_on();
23
			} else {
24
				$this->autoupdate_translations_off();
25
			}
26
		}
27
28
		return true;
29
	}

projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location

@@ 164-170 (lines=7) @@
161
			}
162
		}
163
164
		if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) {
165
			if ( $args['autoupdate_translations'] ) {
166
				$this->autoupdate_translations_on();
167
			} else {
168
				$this->autoupdate_translations_off();
169
			}
170
		}
171
172
		return true;
173
	}