| Conditions | 4 |
| Paths | 6 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function consume(WatchedResourceCollection $collection): void |
||
| 38 | { |
||
| 39 | foreach ($collection as $resource) { |
||
| 40 | $this->inotifyProxy->addWatch($resource); |
||
|
|
|||
| 41 | } |
||
| 42 | |||
| 43 | while ($events = $this->inotifyProxy->read()) { |
||
| 44 | foreach ($events as $event) { |
||
| 45 | $this->eventDispatcher->dispatch($event); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->inotifyProxy->closeWatchers(); |
||
| 50 | } |
||
| 58 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.