We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 5 |
| Paths | 9 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 33 | public static function process(array $configs) |
|
| 11 | { |
||
| 12 | 33 | foreach ($configs as $name => &$config) { |
|
| 13 | 33 | $config['config'] = isset($config['config']) && is_array($config['config']) ? $config['config'] : []; |
|
| 14 | 33 | if (empty($config['config']['name'])) { |
|
| 15 | 33 | $config['config']['name'] = $name; |
|
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 19 | 33 | return $configs; |
|
| 20 | } |
||
| 21 | } |
||
| 22 |