Code Duplication    Length = 7-7 lines in 2 locations

src/Files/File.php 2 locations

@@ 1681-1687 (lines=7) @@
1678
                }
1679
            }
1680
1681
            if ($found === true) {
1682
                if ($value === null) {
1683
                    return $i;
1684
                } else if ($this->tokens[$i]['content'] === $value) {
1685
                    return $i;
1686
                }
1687
            }
1688
1689
            if ($local === true) {
1690
                if (isset($this->tokens[$i]['scope_opener']) === true
@@ 1762-1768 (lines=7) @@
1759
                }
1760
            }
1761
1762
            if ($found === true) {
1763
                if ($value === null) {
1764
                    return $i;
1765
                } else if ($this->tokens[$i]['content'] === $value) {
1766
                    return $i;
1767
                }
1768
            }
1769
1770
            if ($local === true && $this->tokens[$i]['code'] === T_SEMICOLON) {
1771
                break;