| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | 3 | public function build(ProcessorInterface $processor = null): PipelineInterface |
|
| 37 | { |
||
| 38 | 3 | if ($processor == null) { |
|
| 39 | 3 | $processor = new InterruptibleProcessor( |
|
| 40 | function (Command $command) { |
||
| 41 | 3 | return !$command->hasInstance(); |
|
| 42 | 3 | } |
|
| 43 | ); |
||
| 44 | } |
||
| 45 | 3 | return parent::build($processor); |
|
| 46 | } |
||
| 48 |