| @@ 102-109 (lines=8) @@ | ||
| 99 | $current = []; |
|
| 100 | break; |
|
| 101 | // If the tag is "close" then it is an array which is closing and we decrease the stack pointer. |
|
| 102 | case 'close': |
|
| 103 | $oldCurrent = $current; |
|
| 104 | $current = $stack[--$stacktop]; |
|
| 105 | // Going to the end of array to get placeholder key, key($current), and fill in array next |
|
| 106 | end($current); |
|
| 107 | $current[key($current)] = $oldCurrent; |
|
| 108 | unset($oldCurrent); |
|
| 109 | break; |
|
| 110 | // If "complete", then it's a value. Omits the tag if the value is empty. |
|
| 111 | case 'complete': |
|
| 112 | $trimmedValue = trim((string)$val['value']); |
|
| @@ 1656-1664 (lines=9) @@ | ||
| 1653 | $stack[$stacktop++] = $current; |
|
| 1654 | $current = []; |
|
| 1655 | break; |
|
| 1656 | case 'close': |
|
| 1657 | // If the tag is "close" then it is an array which is closing and we decrease the stack pointer. |
|
| 1658 | $oldCurrent = $current; |
|
| 1659 | $current = $stack[--$stacktop]; |
|
| 1660 | // Going to the end of array to get placeholder key, key($current), and fill in array next: |
|
| 1661 | end($current); |
|
| 1662 | $current[key($current)] = $oldCurrent; |
|
| 1663 | unset($oldCurrent); |
|
| 1664 | break; |
|
| 1665 | case 'complete': |
|
| 1666 | // If "complete", then it's a value. If the attribute "base64" is set, then decode the value, otherwise just set it. |
|
| 1667 | if (!empty($val['attributes']['base64'])) { |
|