@@ 1689-1705 (lines=17) @@ | ||
1686 | } |
|
1687 | } |
|
1688 | ||
1689 | if ($local === true) { |
|
1690 | if (isset($this->tokens[$i]['scope_opener']) === true |
|
1691 | && $i === $this->tokens[$i]['scope_closer'] |
|
1692 | ) { |
|
1693 | $i = $this->tokens[$i]['scope_opener']; |
|
1694 | } else if (isset($this->tokens[$i]['bracket_opener']) === true |
|
1695 | && $i === $this->tokens[$i]['bracket_closer'] |
|
1696 | ) { |
|
1697 | $i = $this->tokens[$i]['bracket_opener']; |
|
1698 | } else if (isset($this->tokens[$i]['parenthesis_opener']) === true |
|
1699 | && $i === $this->tokens[$i]['parenthesis_closer'] |
|
1700 | ) { |
|
1701 | $i = $this->tokens[$i]['parenthesis_opener']; |
|
1702 | } else if ($this->tokens[$i]['code'] === T_SEMICOLON) { |
|
1703 | break; |
|
1704 | } |
|
1705 | } |
|
1706 | }//end for |
|
1707 | ||
1708 | return false; |
|
@@ 1895-1908 (lines=14) @@ | ||
1892 | } |
|
1893 | ||
1894 | // Skip nested statements. |
|
1895 | if (isset($this->tokens[$i]['scope_closer']) === true |
|
1896 | && ($i === $this->tokens[$i]['scope_opener'] |
|
1897 | || $i === $this->tokens[$i]['scope_condition']) |
|
1898 | ) { |
|
1899 | $i = $this->tokens[$i]['scope_closer']; |
|
1900 | } else if (isset($this->tokens[$i]['bracket_closer']) === true |
|
1901 | && $i === $this->tokens[$i]['bracket_opener'] |
|
1902 | ) { |
|
1903 | $i = $this->tokens[$i]['bracket_closer']; |
|
1904 | } else if (isset($this->tokens[$i]['parenthesis_closer']) === true |
|
1905 | && $i === $this->tokens[$i]['parenthesis_opener'] |
|
1906 | ) { |
|
1907 | $i = $this->tokens[$i]['parenthesis_closer']; |
|
1908 | } |
|
1909 | ||
1910 | if (isset(Util\Tokens::$emptyTokens[$this->tokens[$i]['code']]) === false) { |
|
1911 | $lastNotEmpty = $i; |