Commit ba9f089
authored
Simplify
The first time the method is called, a string is built up with `|`-separated
extra types, then split based on `|`s, the resulting array is filtered to
exclude non-empty strings, and that array is finally passed to
`PhpFileCleaner::setTypeConfig()`. Given that the array only has at most a
single entry, just set the array directly.PhpFileParser::getExtraTypes() logic (#25)1 parent 73dd304 commit ba9f089
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
0 commit comments