Code Duplication    Length = 8-8 lines in 2 locations

lib/Dwoo/Compiler.php 2 locations

@@ 2153-2160 (lines=8) @@
2150
            $this->templatePlugins[$func]['called'] = true;
2151
        }
2152
2153
        if (is_array($parsingParams)) {
2154
            $parsingParams[] = array($output, $output);
2155
2156
            return $parsingParams;
2157
        } elseif ($curBlock === 'namedparam') {
2158
            return array($output, $output);
2159
        } else {
2160
            return $output;
2161
        }
2162
    }
2163
@@ 2273-2280 (lines=8) @@
2270
2271
        $output = $this->parseConstKey($m[1], $curBlock);
2272
2273
        if (is_array($parsingParams)) {
2274
            $parsingParams[] = array($output, $m[1]);
2275
2276
            return $parsingParams;
2277
        } elseif ($curBlock === 'namedparam') {
2278
            return array($output, $m[1]);
2279
        } else {
2280
            return $output;
2281
        }
2282
    }
2283