Code Duplication    Length = 7-7 lines in 2 locations

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
	}

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

@@ 158-164 (lines=7) @@
155
			}
156
		}
157
158
		if ( isset( $args['autoupdate_translations'] ) && is_bool( $args['autoupdate_translations'] ) ) {
159
			if ( $args['autoupdate_translations'] ) {
160
				$this->autoupdate_translations_on();
161
			} else {
162
				$this->autoupdate_translations_off();
163
			}
164
		}
165
166
		return true;
167
	}