Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack.php 1 location

@@ 5457-5464 (lines=8) @@
5454
	 *
5455
	 * @since 5.4
5456
	 **/
5457
	public static function set_min_time_limit( $min_timeout ) {
5458
		$timeout = self::get_max_execution_time();
5459
		if ( $timeout < $min_timeout ) {
5460
			$timeout = $min_timeout;
5461
			set_time_limit( $timeout );
5462
		}
5463
		return $timeout;
5464
	}
5465
5466
	/**
5467
	 * Takes the response from the Jetpack register new site endpoint and

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

@@ 1123-1130 (lines=8) @@
1120
	 * @since 5.4
1121
	 * @param Integer $min_timeout the minimum timeout value.
1122
	 **/
1123
	public function set_min_time_limit( $min_timeout ) {
1124
		$timeout = $this->get_max_execution_time();
1125
		if ( $timeout < $min_timeout ) {
1126
			$timeout = $min_timeout;
1127
			set_time_limit( $timeout );
1128
		}
1129
		return $timeout;
1130
	}
1131
1132
	/**
1133
	 * Get our assumed site creation date.