Code Duplication    Length = 10-10 lines in 2 locations

include/patTemplate.php 2 locations

@@ 1662-1671 (lines=10) @@
1659
                        //  Empty the array that stores the unused Vars
1660
                        unset($unused);
1661
1662
                        if (is_array($matches[0]) && count($matches[0]) > 0) {
1663
                            //  Check, wether variable is unused
1664
                            for ($k = 0, $kMax = count($matches[0]); $k <= $kMax; ++$k) {
1665
                                if ($matches[1][$k] !== '' && !isset($this->variables[$name][$matches[1][$k]])
1666
                                    && !isset($this->globals[$matches[1][$k]])
1667
                                ) {
1668
                                    $unused[] = $matches[0][$k];
1669
                                }
1670
                            }
1671
                        }
1672
1673
                        if (is_array($unused) && count($unused) > 0) {
1674
                            echo "   <tr>\n";
@@ 1714-1723 (lines=10) @@
1711
                    //  Empty the array that stores the unused Vars
1712
                    unset($unused);
1713
1714
                    if (is_array($matches[0]) && count($matches[0]) > 0) {
1715
                        //  Check, wether variable is unused
1716
                        for ($k = 0, $kMax = count($matches[0]); $k < $kMax; ++$k) {
1717
                            if ($matches[1][$k] !== '' && !isset($this->variables[$name][$matches[1][$k]])
1718
                                && !isset($this->globals[$matches[1][$k]])
1719
                            ) {
1720
                                $unused[] = $matches[0][$k];
1721
                            }
1722
                        }
1723
                    }
1724
1725
                    if (is_array($unused) && count($unused) > 0) {
1726
                        echo "   <tr>\n";