| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function filterOutput($result, CommandData $commandData) |
||
| 18 | { |
||
| 19 | $expr = $commandData->input()->getOption('filter'); |
||
| 20 | if (!empty($expr)) { |
||
| 21 | $factory = LogicalOpFactory::get(); |
||
| 22 | $op = $factory->evaluate($expr); |
||
| 23 | $filter = new FilterOutputData(); |
||
| 24 | $result = $this->wrapFilteredResult($filter->filter($result, $op), get_class($result)); |
||
| 25 | } |
||
| 26 | |||
| 27 | return $result; |
||
| 28 | } |
||
| 29 | |||
| 43 |