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

@@ 830-834 (lines=5) @@
827
                        echo '* already processed, skipping *'.PHP_EOL;
828
                    }
829
830
                    if ($isShared === false
831
                        && isset($this->tokens[$i]['scope_closer']) === true
832
                    ) {
833
                        $i = $this->tokens[$i]['scope_closer'];
834
                    }
835
836
                    continue;
837
                } else if ($currType === $tokenType