Code Duplication    Length = 6-6 lines in 2 locations

src/Files/File.php 2 locations

@@ 1714-1719 (lines=6) @@
1711
1712
        for ($i = $start; $i >= $end; $i--) {
1713
            $found = (bool) $exclude;
1714
            foreach ($types as $type) {
1715
                if ($this->tokens[$i]['code'] === $type) {
1716
                    $found = !$exclude;
1717
                    break;
1718
                }
1719
            }
1720
1721
            if ($found === true) {
1722
                if ($value === null) {
@@ 1795-1800 (lines=6) @@
1792
1793
        for ($i = $start; $i < $end; $i++) {
1794
            $found = (bool) $exclude;
1795
            foreach ($types as $type) {
1796
                if ($this->tokens[$i]['code'] === $type) {
1797
                    $found = !$exclude;
1798
                    break;
1799
                }
1800
            }
1801
1802
            if ($found === true) {
1803
                if ($value === null) {