Commit 573d41d
committed
PHPCS 4.x | File::isReference(): simplify code
Commit 08824f3 added support for `T_USE` tokens for closures being parentheses owners.
As the `File::getMethodParameters()` method also supports closure `use` parameters already, the code in the `File::isReference()` method can now be simplified.
The existing unit tests already cover this.1 parent a949e13 commit 573d41d
1 file changed
+1
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2061 | 2061 | | |
2062 | 2062 | | |
2063 | 2063 | | |
| 2064 | + | |
2064 | 2065 | | |
2065 | 2066 | | |
2066 | 2067 | | |
| |||
2070 | 2071 | | |
2071 | 2072 | | |
2072 | 2073 | | |
2073 | | - | |
2074 | | - | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | 2074 | | |
2087 | 2075 | | |
2088 | 2076 | | |
| |||
0 commit comments