| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function dispatch(TaskDefinitionInterface $taskDefinition): DispatchResultInterface |
||
| 28 | { |
||
| 29 | $parameter = $taskDefinition->define(); |
||
| 30 | $shopIds = $parameter->get('shopId'); |
||
| 31 | |||
| 32 | $arguments = ''; |
||
| 33 | foreach($shopIds as $shopId){ |
||
| 34 | $arguments .= ' --shopId=' . $shopId; |
||
| 35 | } |
||
| 36 | |||
| 37 | return $this->delegate( |
||
| 38 | new ShopwareCommandDefinition('theme:compile', '-n ' . $arguments) |
||
| 39 | ); |
||
| 41 | } |