| @@ 85-92 (lines=8) @@ | ||
| 82 | { |
|
| 83 | foreach ($array as $key => &$value) { |
|
| 84 | $t = array(); |
|
| 85 | if (gettype($key) == 'string') { |
|
| 86 | $tokens = $parser->parseString($key); |
|
| 87 | if (!$tokens->isEmpty()) { |
|
| 88 | $t[self::_KEY] = $key; |
|
| 89 | $t[self::_KEY_TOKENS] = $tokens; |
|
| 90 | $t[self::_KEY_REF] = &$array; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | $valueType = gettype($value); |
|
| 94 | if ($valueType == 'string') { |
|
| 95 | $tokens = $parser->parseString($value); |
|
| @@ 94-101 (lines=8) @@ | ||
| 91 | } |
|
| 92 | } |
|
| 93 | $valueType = gettype($value); |
|
| 94 | if ($valueType == 'string') { |
|
| 95 | $tokens = $parser->parseString($value); |
|
| 96 | if (!$tokens->isEmpty()) { |
|
| 97 | $t[self::_VALUE] = $value; |
|
| 98 | $t[self::_VALUE_TOKENS] = $tokens; |
|
| 99 | $t[self::_VALUE_REF] = &$value; |
|
| 100 | } |
|
| 101 | } |
|
| 102 | if (count($t) > 0) { |
|
| 103 | $t[self::_LEVEL] = $level; |
|
| 104 | $result[] = $t; |
|