We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 33-35 (lines=3) @@ | ||
| 30 | { |
|
| 31 | foreach ($configs as $parentName => &$config) { |
|
| 32 | if (!empty($config[self::HEIRS_KEY])) { |
|
| 33 | if (!is_array($config[self::HEIRS_KEY])) { |
|
| 34 | $config[self::HEIRS_KEY] = [$config[self::HEIRS_KEY]]; |
|
| 35 | } |
|
| 36 | foreach ($config[self::HEIRS_KEY] as $heirs) { |
|
| 37 | if (!isset($configs[$heirs])) { |
|
| 38 | throw new \InvalidArgumentException(sprintf( |
|
| @@ 103-105 (lines=3) @@ | ||
| 100 | ||
| 101 | // flatten |
|
| 102 | $config = $configs[$name]; |
|
| 103 | if (empty($config[self::INHERITS_KEY]) || !is_array($config[self::INHERITS_KEY])) { |
|
| 104 | return []; |
|
| 105 | } |
|
| 106 | $typesTreated[$name] = true; |
|
| 107 | $flattenInheritsTypes = []; |
|
| 108 | foreach ($config[self::INHERITS_KEY] as $typeToInherit) { |
|