We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 5 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 100 | public function process(LazyConfig $lazyConfig): LazyConfig |
|
| 20 | { |
||
| 21 | $lazyConfig->addPostLoader(function ($config) { |
||
| 22 | 100 | if (isset($config['resolveField']) && \is_callable($config['resolveField'])) { |
|
| 23 | 10 | $config['resolveField'] = $this->argumentFactory->wrapResolverArgs($config['resolveField']); |
|
| 24 | } |
||
| 25 | |||
| 26 | 100 | if (isset($config['fields'])) { |
|
| 27 | $config['fields'] = function () use ($config) { |
||
| 28 | 87 | $fields = $config['fields']; |
|
| 29 | 87 | if (\is_callable($config['fields'])) { |
|
| 30 | 87 | $fields = $config['fields'](); |
|
| 31 | } |
||
| 32 | |||
| 33 | 87 | return $this->wrapFieldsArgument($fields); |
|
| 34 | }; |
||
| 35 | } |
||
| 36 | |||
| 37 | 100 | return $config; |
|
| 38 | 100 | }); |
|
| 39 | |||
| 40 | 100 | return $lazyConfig; |
|
| 41 | } |
||
| 54 |