Code Duplication    Length = 8-8 lines in 2 locations

lib/ConfigToken/TreeCompiler/XrefTokenResolverCollection.php 2 locations

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