Code Duplication    Length = 6-6 lines in 2 locations

src/Files/File.php 2 locations

@@ 1674-1679 (lines=6) @@
1671
1672
        for ($i = $start; $i >= $end; $i--) {
1673
            $found = (bool) $exclude;
1674
            foreach ($types as $type) {
1675
                if ($this->tokens[$i]['code'] === $type) {
1676
                    $found = !$exclude;
1677
                    break;
1678
                }
1679
            }
1680
1681
            if ($found === true) {
1682
                if ($value === null) {
@@ 1755-1760 (lines=6) @@
1752
1753
        for ($i = $start; $i < $end; $i++) {
1754
            $found = (bool) $exclude;
1755
            foreach ($types as $type) {
1756
                if ($this->tokens[$i]['code'] === $type) {
1757
                    $found = !$exclude;
1758
                    break;
1759
                }
1760
            }
1761
1762
            if ($found === true) {
1763
                if ($value === null) {