Code Duplication    Length = 5-6 lines in 2 locations

src/Files/File.php 1 location

@@ 1857-1862 (lines=6) @@
1854
                return $lastNotEmpty;
1855
            }
1856
1857
            if (isset($this->tokens[$i]['scope_opener']) === true
1858
                && $i === $this->tokens[$i]['scope_closer']
1859
            ) {
1860
                // Found the end of the previous scope block.
1861
                return $lastNotEmpty;
1862
            }
1863
1864
            // Skip nested statements.
1865
            if (isset($this->tokens[$i]['bracket_opener']) === true

src/Tokenizers/Tokenizer.php 1 location

@@ 801-805 (lines=5) @@
798
                        echo '* already processed, skipping *'.PHP_EOL;
799
                    }
800
801
                    if ($isShared === false
802
                        && isset($this->tokens[$i]['scope_closer']) === true
803
                    ) {
804
                        $i = $this->tokens[$i]['scope_closer'];
805
                    }
806
807
                    continue;
808
                } else if ($currType === $tokenType