| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 81 | public function checking() : void |
||
| 82 | { |
||
| 83 | foreach ($this->source->lived() as $pid => $time) { |
||
| 84 | if ($pid === self::SP_IDENTIFY) { |
||
| 85 | continue; |
||
| 86 | } |
||
| 87 | |||
| 88 | $last = $this->activity[$pid] ?? $time; |
||
| 89 | $this->activity[$pid] = $time; |
||
| 90 | |||
| 91 | if (time() - $last >= $this->expired) { |
||
| 92 | unset($this->activity[$pid]); |
||
| 93 | $this->source->forget($pid); |
||
| 94 | $this->reporting(); |
||
| 95 | } |
||
| 114 |