Code Duplication    Length = 8-8 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 1 location

@@ 5352-5359 (lines=8) @@
5349
	 *
5350
	 * @since 5.4
5351
	 **/
5352
	public static function set_min_time_limit( $min_timeout ) {
5353
		$timeout = self::get_max_execution_time();
5354
		if ( $timeout < $min_timeout ) {
5355
			$timeout = $min_timeout;
5356
			set_time_limit( $timeout );
5357
		}
5358
		return $timeout;
5359
	}
5360
5361
	/**
5362
	 * Takes the response from the Jetpack register new site endpoint and

projects/packages/connection/src/class-manager.php 1 location

@@ 1148-1155 (lines=8) @@
1145
	 * @since 5.4
1146
	 * @param Integer $min_timeout the minimum timeout value.
1147
	 **/
1148
	public function set_min_time_limit( $min_timeout ) {
1149
		$timeout = $this->get_max_execution_time();
1150
		if ( $timeout < $min_timeout ) {
1151
			$timeout = $min_timeout;
1152
			set_time_limit( $timeout );
1153
		}
1154
		return $timeout;
1155
	}
1156
1157
	/**
1158
	 * Get our assumed site creation date.