chillerlan / php-httpinterface
Showing 2 of 3 files from the diff.

@@ -23,7 +23,7 @@
Loading
23 23
	/**
24 24
	 * A custom user agent string
25 25
	 */
26 -
	protected string $user_agent = 'chillerlanHttpInterface/2.0 +https://github.com/chillerlan/php-httpinterface';
26 +
	protected string $user_agent = 'chillerlanHttpInterface/5.0 +https://github.com/chillerlan/php-httpinterface';
27 27
28 28
	/**
29 29
	 * options for each curl instance
@@ -60,7 +60,7 @@
Loading
60 60
	/**
61 61
	 * maximum of concurrent requests for curl_multi
62 62
	 */
63 -
	protected int $windowSize = 5;
63 +
	protected int $window_size = 5;
64 64
65 65
	/**
66 66
	 * sleep timer (milliseconds) between each fired multi request on startup

@@ -74,7 +74,7 @@
Loading
74 74
75 75
		$curl_multi_options = [
76 76
			CURLMOPT_PIPELINING  => CURLPIPE_MULTIPLEX,
77 -
			CURLMOPT_MAXCONNECTS => $this->options->windowSize,
77 +
			CURLMOPT_MAXCONNECTS => $this->options->window_size,
78 78
		] + $this->options->curl_multi_options;
79 79
80 80
		foreach($curl_multi_options as $k => $v){
@@ -141,7 +141,7 @@
Loading
141 141
		}
142 142
143 143
		// shoot out the first batch of requests
144 -
		for($i = 0; $i < $this->options->windowSize; $i++){
144 +
		for($i = 0; $i < $this->options->window_size; $i++){
145 145
			$this->createHandle();
146 146
		}
147 147
Files Complexity Coverage
src 409 76.07%
Project Totals (30 files) 409 76.07%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading