Code Duplication    Length = 6-6 lines in 2 locations

res/template/Class.tpl.php 2 locations

@@ 29-34 (lines=6) @@
26
<?php if (!$first) echo "\n" ?>
27
<?php if ($method->getDescription() || $method->hasArguments() || $method->hasReturnValue()): ?>
28
    /**
29
<?php if ($method->getDescription()): ?>
30
<?php foreach (explode("\n", $method->getDescription()) as $line): ?>
31
     *<?php echo rtrim(' '.$line)."\n" ?>
32
<?php endforeach ?>
33
<?php endif ?>
34
<?php if ($method->getDescription() && ($method->hasArguments() || $method->hasReturnValue())): ?>
35
     *
36
<?php endif ?>
37
<?php if ($method->hasArguments()): ?>
@@ 52-57 (lines=6) @@
49
<?php endif ?>
50
    public function <?php echo $method->getName() ?>(<?php echo implode(', ', $method->getArguments()) ?>)
51
    {
52
<?php if ($method->getBody()): ?>
53
<?php foreach (explode("\n", $method->getBody()) as $line): ?>
54
<?php echo rtrim('        '.$line)."\n" ?>
55
<?php endforeach ?>
56
<?php endif ?>
57
<?php if ($method->getBody() && $method->hasReturnValue()) echo "\n" ?>
58
<?php if ($method->hasReturnValue()): ?>
59
        return <?php echo $method->getReturnValue() ?>;
60
<?php endif ?>