| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | public function run() |
||
| 57 | { |
||
| 58 | $this->reader->open(); |
||
| 59 | while (true) { |
||
| 60 | $line = $this->reader->read(); |
||
| 61 | if ($line === false) { |
||
| 62 | usleep(200); |
||
| 63 | continue; |
||
| 64 | } |
||
| 65 | if ($this->filter->filter($line)) { |
||
| 66 | $message = $this->filter->getErrorMessage($line, $this->reader); |
||
| 67 | $this->notify->send($this->reader->info(), $message); |
||
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 | |||
| 83 | } |
As per the PSR-2 coding standard, there must not be a space in front of the colon in case statements.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.