Code Duplication    Length = 6-9 lines in 2 locations

src/Parser/PropertyParserTrait.php 1 location

@@ 181-189 (lines=9) @@
178
                break;
179
            }
180
181
            if ($defaultValue !== null) {
182
                // Do we get a static keyword?
183
                if (is_array($tokens[$i])) {
184
                    $defaultValue .= $tokens[$i][1];
185
186
                } else {
187
                    $defaultValue .= $tokens[$i];
188
                }
189
            }
190
191
            // If we pass a = we have to get ready to make notes
192
            if ($tokens[$i] === '=') {

src/StreamFilters/AbstractFilter.php 1 location

@@ 104-109 (lines=6) @@
101
            }
102
103
            // collect what we find
104
            if (is_array($tokens[$i])) {
105
                $result .= $tokens[$i][1];
106
107
            } else {
108
                $result .= $tokens[$i];
109
            }
110
        }
111
112
        return $result;