| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function searchByRegex(string $regex): array |
||
| 30 | { |
||
| 31 | $result = []; |
||
| 32 | |||
| 33 | foreach (new CommandLineEnumerator($this->file_reader) as $pid => $command_line) { |
||
| 34 | if (preg_match($regex, $command_line)) { |
||
| 35 | $result = \array_merge($result, iterator_to_array( |
||
| 36 | $this->thread_enumerator->getThreadIds($pid) |
||
| 37 | )); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return $result; |
||
| 42 | } |
||
| 44 |