@@ 1729-1745 (lines=17) @@ | ||
1726 | } |
|
1727 | } |
|
1728 | ||
1729 | if ($local === true) { |
|
1730 | if (isset($this->tokens[$i]['scope_opener']) === true |
|
1731 | && $i === $this->tokens[$i]['scope_closer'] |
|
1732 | ) { |
|
1733 | $i = $this->tokens[$i]['scope_opener']; |
|
1734 | } else if (isset($this->tokens[$i]['bracket_opener']) === true |
|
1735 | && $i === $this->tokens[$i]['bracket_closer'] |
|
1736 | ) { |
|
1737 | $i = $this->tokens[$i]['bracket_opener']; |
|
1738 | } else if (isset($this->tokens[$i]['parenthesis_opener']) === true |
|
1739 | && $i === $this->tokens[$i]['parenthesis_closer'] |
|
1740 | ) { |
|
1741 | $i = $this->tokens[$i]['parenthesis_opener']; |
|
1742 | } else if ($this->tokens[$i]['code'] === T_SEMICOLON) { |
|
1743 | break; |
|
1744 | } |
|
1745 | } |
|
1746 | }//end for |
|
1747 | ||
1748 | return false; |
|
@@ 1935-1948 (lines=14) @@ | ||
1932 | } |
|
1933 | ||
1934 | // Skip nested statements. |
|
1935 | if (isset($this->tokens[$i]['scope_closer']) === true |
|
1936 | && ($i === $this->tokens[$i]['scope_opener'] |
|
1937 | || $i === $this->tokens[$i]['scope_condition']) |
|
1938 | ) { |
|
1939 | $i = $this->tokens[$i]['scope_closer']; |
|
1940 | } else if (isset($this->tokens[$i]['bracket_closer']) === true |
|
1941 | && $i === $this->tokens[$i]['bracket_opener'] |
|
1942 | ) { |
|
1943 | $i = $this->tokens[$i]['bracket_closer']; |
|
1944 | } else if (isset($this->tokens[$i]['parenthesis_closer']) === true |
|
1945 | && $i === $this->tokens[$i]['parenthesis_opener'] |
|
1946 | ) { |
|
1947 | $i = $this->tokens[$i]['parenthesis_closer']; |
|
1948 | } |
|
1949 | ||
1950 | if (isset(Util\Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) { |
|
1951 | $lastNotEmpty = $i; |