Commit 8126e24
MarkBaker
Performance tweaks to cell collection
I suspect that scrutiniser may complain that the pass-by-reference values in an expression like `sscanf($coord, '%[A-Z]%d', $column, $row)` don't exist; but PHP handles that without issue, creating the variables as needed, and phpstan has no problems with that, so scrutiniser shouldn't treat it as an issue. There's no point in adding code (even if it's just pre-defining call-by-reference arguments) when it's unnecessary overhead.1 parent f48044c commit 8126e24
File tree
4 files changed
+5
-34
lines changed- src/PhpSpreadsheet
- Cell
- Collection
4 files changed
+5
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | 1178 | | |
1184 | 1179 | | |
1185 | 1180 | | |
| |||
3120 | 3115 | | |
3121 | 3116 | | |
3122 | 3117 | | |
3123 | | - | |
3124 | | - | |
3125 | | - | |
3126 | | - | |
3127 | | - | |
3128 | 3118 | | |
3129 | 3119 | | |
3130 | 3120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
156 | | - | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
| |||
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
175 | | - | |
176 | | - | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
| |||
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 205 | | |
214 | 206 | | |
215 | 207 | | |
| |||
222 | 214 | | |
223 | 215 | | |
224 | 216 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 217 | | |
229 | 218 | | |
230 | 219 | | |
| |||
245 | 234 | | |
246 | 235 | | |
247 | 236 | | |
248 | | - | |
249 | | - | |
250 | 237 | | |
251 | 238 | | |
252 | 239 | | |
| |||
273 | 260 | | |
274 | 261 | | |
275 | 262 | | |
276 | | - | |
277 | | - | |
278 | 263 | | |
279 | 264 | | |
280 | 265 | | |
| |||
341 | 326 | | |
342 | 327 | | |
343 | 328 | | |
344 | | - | |
345 | | - | |
346 | 329 | | |
347 | 330 | | |
348 | 331 | | |
| |||
358 | 341 | | |
359 | 342 | | |
360 | 343 | | |
361 | | - | |
362 | | - | |
363 | 344 | | |
364 | 345 | | |
365 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments