| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function validate(Config $config, array $configuration): void |
||
| 31 | { |
||
| 32 | if (!\array_key_exists(self::KEY, $configuration)) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | $value = $configuration[self::KEY]; |
||
| 37 | |||
| 38 | Assert::integer($value, 'Amount of parallel jobs should be an integer'); |
||
| 39 | |||
| 40 | $config->setParallelJobs($value); |
||
| 41 | } |
||
| 43 |