| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 364 | public function execute($obj) |
|
| 27 | { |
||
| 28 | 364 | $results = Helper::toArray($obj->result()); |
|
| 29 | |||
| 30 | 364 | $this->output->persist(); |
|
| 31 | |||
| 32 | 364 | foreach ($results as $result) { |
|
| 33 | 364 | if ($obj->sameLine()) { |
|
| 34 | 32 | $this->output->sameLine(); |
|
| 35 | 32 | } |
|
| 36 | |||
| 37 | 364 | $this->output->write($obj->getParser()->apply($result)); |
|
| 38 | 364 | } |
|
| 39 | |||
| 40 | 364 | $this->output->persist(false); |
|
| 41 | 364 | } |
|
| 42 | } |
||
| 43 |