Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | public function getIterator() |
||
24 | { |
||
25 | /** |
||
26 | * @var string $full_path |
||
27 | * @var \SplFileInfo $item |
||
28 | */ |
||
29 | foreach (new \GlobIterator('/proc/*/cmdline') as $full_path => $item) { |
||
30 | $command_line = file_get_contents($full_path); |
||
31 | if ($command_line === false) { |
||
32 | continue; |
||
33 | } |
||
34 | |||
35 | yield (int)basename($item->getPath()) => $command_line; |
||
36 | } |
||
39 |