@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | $innerSleepInt = $outerSleepInt = 1; |
96 | 96 | while ($this->_running && ($this->_execStatus == CURLM_OK || $this->_execStatus == CURLM_CALL_MULTI_PERFORM)) { |
97 | 97 | usleep(intval($outerSleepInt)); |
98 | - $outerSleepInt = intval(max(1, ($outerSleepInt*$this->_sleepIncrement))); |
|
99 | - $ms=curl_multi_select($this->_mc, 0); |
|
98 | + $outerSleepInt = intval(max(1, ($outerSleepInt * $this->_sleepIncrement))); |
|
99 | + $ms = curl_multi_select($this->_mc, 0); |
|
100 | 100 | |
101 | 101 | // bug in PHP 5.3.18+ where curl_multi_select can return -1 |
102 | 102 | // https://bugs.php.net/bug.php?id=63411 |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | do { |
111 | 111 | $this->_execStatus = curl_multi_exec($this->_mc, $this->_running); |
112 | 112 | usleep(intval($innerSleepInt)); |
113 | - $innerSleepInt = intval(max(1, ($innerSleepInt*$this->_sleepIncrement))); |
|
114 | - } while ($this->_execStatus==CURLM_CALL_MULTI_PERFORM); |
|
113 | + $innerSleepInt = intval(max(1, ($innerSleepInt * $this->_sleepIncrement))); |
|
114 | + } while ($this->_execStatus == CURLM_CALL_MULTI_PERFORM); |
|
115 | 115 | $innerSleepInt = 1; |
116 | 116 | } |
117 | 117 | $this->_storeResponses(); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | private function _headerCallback($ch, $header) |
148 | 148 | { |
149 | 149 | $_header = trim($header); |
150 | - $colonPos= strpos($_header, ':'); |
|
150 | + $colonPos = strpos($_header, ':'); |
|
151 | 151 | if ($colonPos > 0) { |
152 | 152 | $key = substr($_header, 0, $colonPos); |
153 | 153 | $val = preg_replace('/^\W+/', '', substr($_header, $colonPos)); |
@@ -34,8 +34,8 @@ |
||
34 | 34 | } |
35 | 35 | $this->_min = $min; |
36 | 36 | $this->_max = $max; |
37 | - $this->_range = $max-$min; |
|
38 | - $this->_step = floatval($this->_range/$this->_width); |
|
37 | + $this->_range = $max - $min; |
|
38 | + $this->_step = floatval($this->_range / $this->_width); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | public function renderAscii() |