We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 3 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
13 | 2 | public static function toConfig(Node $node): array |
|
14 | { |
||
15 | 2 | $config = DescriptionNode::toConfig($node) + [ |
|
16 | 2 | 'fields' => FieldsNode::toConfig($node), |
|
17 | ]; |
||
18 | |||
19 | 2 | if (!empty($node->interfaces)) { |
|
20 | 2 | $interfaces = []; |
|
21 | 2 | foreach ($node->interfaces as $interface) { |
|
22 | 2 | $interfaces[] = TypeNode::astTypeNodeToString($interface); |
|
23 | } |
||
24 | 2 | $config['interfaces'] = $interfaces; |
|
25 | } |
||
26 | |||
27 | return [ |
||
28 | 2 | 'type' => static::TYPENAME, |
|
29 | 2 | 'config' => $config, |
|
30 | ]; |
||
31 | } |
||
32 | } |
||
33 |