@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | if ($this->captureTopItems) { |
| 47 | 47 | if ($this->topCount < $this->captureTopItems || $this->topLast === null || $this->topLast < $value) { |
| 48 | 48 | ++$this->sampleId; |
| 49 | - $this->topMetas [$this->sampleId]= $meta; |
|
| 50 | - $this->topValues [$this->sampleId]= $value; |
|
| 49 | + $this->topMetas [$this->sampleId] = $meta; |
|
| 50 | + $this->topValues [$this->sampleId] = $value; |
|
| 51 | 51 | ++$this->topCount; |
| 52 | 52 | |
| 53 | 53 | if ($this->topCount > $this->captureTopItems) { |
@@ -65,8 +65,8 @@ discard block |
||
| 65 | 65 | if ($this->captureBottomItems) { |
| 66 | 66 | if ($this->bottomCount < $this->captureBottomItems || $this->bottomLast === null || $this->bottomLast > $value) { |
| 67 | 67 | ++$this->sampleId; |
| 68 | - $this->bottomMetas [$this->sampleId]= $meta; |
|
| 69 | - $this->bottomValues [$this->sampleId]= $value; |
|
| 68 | + $this->bottomMetas [$this->sampleId] = $meta; |
|
| 69 | + $this->bottomValues [$this->sampleId] = $value; |
|
| 70 | 70 | ++$this->bottomCount; |
| 71 | 71 | |
| 72 | 72 | if ($this->bottomCount > $this->captureBottomItems) { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $left = 0; |
| 118 | 118 | $right = $this->totalBuckets - 1; |
| 119 | 119 | while ($right - $left > 0) { |
| 120 | - $position = (int)(($right + $left)/2); |
|
| 120 | + $position = (int)(($right + $left) / 2); |
|
| 121 | 121 | $item = $this->buckets[$position]; |
| 122 | 122 | if ($value < $item[0]) { |
| 123 | 123 | $right = $position - 1; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | public function getTopMetas() { |
| 223 | 223 | $result = array(); |
| 224 | 224 | foreach ($this->topValues as $sampleId => $tmp) { |
| 225 | - $result []= $this->topMetas[$sampleId]; |
|
| 225 | + $result [] = $this->topMetas[$sampleId]; |
|
| 226 | 226 | } |
| 227 | 227 | return $result; |
| 228 | 228 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | public function getBottomMetas() { |
| 235 | 235 | $result = array(); |
| 236 | 236 | foreach ($this->bottomValues as $sampleId => $tmp) { |
| 237 | - $result []= $this->bottomMetas[$sampleId]; |
|
| 237 | + $result [] = $this->bottomMetas[$sampleId]; |
|
| 238 | 238 | } |
| 239 | 239 | return $result; |
| 240 | 240 | } |