| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function afterFileNode(FileNode $node) |
||
| 33 | { |
||
| 34 | $layoutIds = []; |
||
| 35 | |||
| 36 | foreach ($node->getChildren() as $layout) { |
||
| 37 | $node->setAttribute( |
||
| 38 | 'customer_number', |
||
| 39 | $layout->getChild('opening')->getChild('customer_number')->getValue() |
||
| 40 | ); |
||
| 41 | |||
| 42 | $node->setAttribute( |
||
| 43 | 'bankgiro', |
||
| 44 | $layout->getChild('opening')->getChild('bankgiro')->getValue() |
||
| 45 | ); |
||
| 46 | |||
| 47 | $layoutIds[] = $layout->getChild('opening')->getAttribute('layout_name'); |
||
| 48 | } |
||
| 49 | |||
| 50 | $node->setAttribute('layout_ids', $layoutIds); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |