Conditions | 5 |
Paths | 16 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
78 | public function in() : void |
||
79 | { |
||
80 | $this->tokens += intval($this->options->bucketTGS / self::PST); |
||
81 | |||
82 | $this->options->capacity > 0 |
||
83 | ? $this->tokens > $this->options->capacity && $this->tokens = $this->options->capacity |
||
84 | : $this->tokens > $this->options->bucketTGS && $this->tokens = $this->options->bucketTGS |
||
85 | ; |
||
86 | |||
87 | ($c = $this->watcher) && $c($this); |
||
88 | } |
||
105 |