Skip to content

Commit 85b6af0

Browse files
committed
More Opcache optimization on ActOnAll helper
1 parent e9c3272 commit 85b6af0

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

lib/Phpfastcache/Helper/ActOnAll.php

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function getGenericCallback(): \Closure
6565
public function hasItem($key): array
6666
{
6767
$callback = $this->getGenericCallback();
68-
return $callback(__FUNCTION__, func_get_args());
68+
return $callback(__FUNCTION__, \func_get_args());
6969
}
7070

7171
/**
@@ -74,7 +74,7 @@ public function hasItem($key): array
7474
public function clear(): array
7575
{
7676
$callback = $this->getGenericCallback();
77-
return $callback(__FUNCTION__, func_get_args());
77+
return $callback(__FUNCTION__, \func_get_args());
7878
}
7979

8080
/**
@@ -84,7 +84,7 @@ public function clear(): array
8484
public function deleteItem($key): array
8585
{
8686
$callback = $this->getGenericCallback();
87-
return $callback(__FUNCTION__, func_get_args());
87+
return $callback(__FUNCTION__, \func_get_args());
8888
}
8989

9090
/**
@@ -94,7 +94,7 @@ public function deleteItem($key): array
9494
public function deleteItems(array $keys): array
9595
{
9696
$callback = $this->getGenericCallback();
97-
return $callback(__FUNCTION__, func_get_args());
97+
return $callback(__FUNCTION__, \func_get_args());
9898
}
9999

100100
/**
@@ -104,7 +104,7 @@ public function deleteItems(array $keys): array
104104
public function save(CacheItemInterface $item): array
105105
{
106106
$callback = $this->getGenericCallback();
107-
return $callback(__FUNCTION__, func_get_args());
107+
return $callback(__FUNCTION__, \func_get_args());
108108
}
109109

110110
/**
@@ -114,7 +114,7 @@ public function save(CacheItemInterface $item): array
114114
public function saveDeferred(CacheItemInterface $item): array
115115
{
116116
$callback = $this->getGenericCallback();
117-
return $callback(__FUNCTION__, func_get_args());
117+
return $callback(__FUNCTION__, \func_get_args());
118118
}
119119

120120
/**
@@ -124,7 +124,7 @@ public function saveDeferred(CacheItemInterface $item): array
124124
public function saveMultiple(...$items): array
125125
{
126126
$callback = $this->getGenericCallback();
127-
return $callback(__FUNCTION__, func_get_args());
127+
return $callback(__FUNCTION__, \func_get_args());
128128
}
129129

130130
/**
@@ -133,7 +133,7 @@ public function saveMultiple(...$items): array
133133
public function commit(): array
134134
{
135135
$callback = $this->getGenericCallback();
136-
return $callback(__FUNCTION__, func_get_args());
136+
return $callback(__FUNCTION__, \func_get_args());
137137
}
138138

139139
/**
@@ -142,7 +142,7 @@ public function commit(): array
142142
public function getConfig(): array
143143
{
144144
$callback = $this->getGenericCallback();
145-
return $callback(__FUNCTION__, func_get_args());
145+
return $callback(__FUNCTION__, \func_get_args());
146146
}
147147

148148
/**
@@ -152,7 +152,7 @@ public function getConfig(): array
152152
public function getConfigOption(string $optionName): array
153153
{
154154
$callback = $this->getGenericCallback();
155-
return $callback(__FUNCTION__, func_get_args());
155+
return $callback(__FUNCTION__, \func_get_args());
156156
}
157157

158158
/**
@@ -161,7 +161,7 @@ public function getConfigOption(string $optionName): array
161161
public function getDriverName(): array
162162
{
163163
$callback = $this->getGenericCallback();
164-
return $callback(__FUNCTION__, func_get_args());
164+
return $callback(__FUNCTION__, \func_get_args());
165165
}
166166

167167
/**
@@ -171,7 +171,7 @@ public function getDriverName(): array
171171
public function getItem($key): array
172172
{
173173
$callback = $this->getGenericCallback();
174-
return $callback(__FUNCTION__, func_get_args());
174+
return $callback(__FUNCTION__, \func_get_args());
175175
}
176176

177177
/**
@@ -181,7 +181,7 @@ public function getItem($key): array
181181
public function getItems(array $keys = []): array
182182
{
183183
$callback = $this->getGenericCallback();
184-
return $callback(__FUNCTION__, func_get_args());
184+
return $callback(__FUNCTION__, \func_get_args());
185185
}
186186

187187
/**
@@ -193,7 +193,7 @@ public function getItems(array $keys = []): array
193193
public function getItemsAsJsonString(array $keys = [], $option = 0, $depth = 512): array
194194
{
195195
$callback = $this->getGenericCallback();
196-
return $callback(__FUNCTION__, func_get_args());
196+
return $callback(__FUNCTION__, \func_get_args());
197197
}
198198

199199
/**
@@ -203,7 +203,7 @@ public function getItemsAsJsonString(array $keys = [], $option = 0, $depth = 512
203203
public function setItem(CacheItemInterface $item): array
204204
{
205205
$callback = $this->getGenericCallback();
206-
return $callback(__FUNCTION__, func_get_args());
206+
return $callback(__FUNCTION__, \func_get_args());
207207
}
208208

209209
/**
@@ -212,7 +212,7 @@ public function setItem(CacheItemInterface $item): array
212212
public function getHelp(): array
213213
{
214214
$callback = $this->getGenericCallback();
215-
return $callback(__FUNCTION__, func_get_args());
215+
return $callback(__FUNCTION__, \func_get_args());
216216
}
217217

218218
/**
@@ -221,7 +221,7 @@ public function getHelp(): array
221221
public function getStats(): array
222222
{
223223
$callback = $this->getGenericCallback();
224-
return $callback(__FUNCTION__, func_get_args());
224+
return $callback(__FUNCTION__, \func_get_args());
225225
}
226226

227227
/**
@@ -231,7 +231,7 @@ public function getStats(): array
231231
public function getItemsByTag($tagName): array
232232
{
233233
$callback = $this->getGenericCallback();
234-
return $callback(__FUNCTION__, func_get_args());
234+
return $callback(__FUNCTION__, \func_get_args());
235235
}
236236

237237
/**
@@ -241,7 +241,7 @@ public function getItemsByTag($tagName): array
241241
public function getItemsByTags(array $tagNames): array
242242
{
243243
$callback = $this->getGenericCallback();
244-
return $callback(__FUNCTION__, func_get_args());
244+
return $callback(__FUNCTION__, \func_get_args());
245245
}
246246

247247
/**
@@ -253,7 +253,7 @@ public function getItemsByTags(array $tagNames): array
253253
public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth = 512): array
254254
{
255255
$callback = $this->getGenericCallback();
256-
return $callback(__FUNCTION__, func_get_args());
256+
return $callback(__FUNCTION__, \func_get_args());
257257
}
258258

259259
/**
@@ -263,7 +263,7 @@ public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth
263263
public function deleteItemsByTag($tagName): array
264264
{
265265
$callback = $this->getGenericCallback();
266-
return $callback(__FUNCTION__, func_get_args());
266+
return $callback(__FUNCTION__, \func_get_args());
267267
}
268268

269269
/**
@@ -273,7 +273,7 @@ public function deleteItemsByTag($tagName): array
273273
public function deleteItemsByTags(array $tagNames): array
274274
{
275275
$callback = $this->getGenericCallback();
276-
return $callback(__FUNCTION__, func_get_args());
276+
return $callback(__FUNCTION__, \func_get_args());
277277
}
278278

279279
/**
@@ -284,7 +284,7 @@ public function deleteItemsByTags(array $tagNames): array
284284
public function incrementItemsByTag($tagName, $step = 1): array
285285
{
286286
$callback = $this->getGenericCallback();
287-
return $callback(__FUNCTION__, func_get_args());
287+
return $callback(__FUNCTION__, \func_get_args());
288288
}
289289

290290
/**
@@ -295,7 +295,7 @@ public function incrementItemsByTag($tagName, $step = 1): array
295295
public function incrementItemsByTags(array $tagNames, $step = 1): array
296296
{
297297
$callback = $this->getGenericCallback();
298-
return $callback(__FUNCTION__, func_get_args());
298+
return $callback(__FUNCTION__, \func_get_args());
299299
}
300300

301301
/**
@@ -306,7 +306,7 @@ public function incrementItemsByTags(array $tagNames, $step = 1): array
306306
public function decrementItemsByTag($tagName, $step = 1): array
307307
{
308308
$callback = $this->getGenericCallback();
309-
return $callback(__FUNCTION__, func_get_args());
309+
return $callback(__FUNCTION__, \func_get_args());
310310
}
311311

312312
/**
@@ -317,7 +317,7 @@ public function decrementItemsByTag($tagName, $step = 1): array
317317
public function decrementItemsByTags(array $tagNames, $step = 1): array
318318
{
319319
$callback = $this->getGenericCallback();
320-
return $callback(__FUNCTION__, func_get_args());
320+
return $callback(__FUNCTION__, \func_get_args());
321321
}
322322

323323
/**
@@ -328,7 +328,7 @@ public function decrementItemsByTags(array $tagNames, $step = 1): array
328328
public function appendItemsByTag($tagName, $data): array
329329
{
330330
$callback = $this->getGenericCallback();
331-
return $callback(__FUNCTION__, func_get_args());
331+
return $callback(__FUNCTION__, \func_get_args());
332332
}
333333

334334
/**
@@ -339,7 +339,7 @@ public function appendItemsByTag($tagName, $data): array
339339
public function appendItemsByTags(array $tagNames, $data): array
340340
{
341341
$callback = $this->getGenericCallback();
342-
return $callback(__FUNCTION__, func_get_args());
342+
return $callback(__FUNCTION__, \func_get_args());
343343
}
344344

345345
/**
@@ -350,7 +350,7 @@ public function appendItemsByTags(array $tagNames, $data): array
350350
public function prependItemsByTag($tagName, $data): array
351351
{
352352
$callback = $this->getGenericCallback();
353-
return $callback(__FUNCTION__, func_get_args());
353+
return $callback(__FUNCTION__, \func_get_args());
354354
}
355355

356356
/**
@@ -361,7 +361,7 @@ public function prependItemsByTag($tagName, $data): array
361361
public function prependItemsByTags(array $tagNames, $data): array
362362
{
363363
$callback = $this->getGenericCallback();
364-
return $callback(__FUNCTION__, func_get_args());
364+
return $callback(__FUNCTION__, \func_get_args());
365365
}
366366

367367
/**
@@ -371,7 +371,7 @@ public function prependItemsByTags(array $tagNames, $data): array
371371
public function getItemsByTagsAll(array $tagNames): array
372372
{
373373
$callback = $this->getGenericCallback();
374-
return $callback(__FUNCTION__, func_get_args());
374+
return $callback(__FUNCTION__, \func_get_args());
375375
}
376376

377377
/**
@@ -381,7 +381,7 @@ public function getItemsByTagsAll(array $tagNames): array
381381
public function deleteItemsByTagsAll(array $tagNames): array
382382
{
383383
$callback = $this->getGenericCallback();
384-
return $callback(__FUNCTION__, func_get_args());
384+
return $callback(__FUNCTION__, \func_get_args());
385385
}
386386

387387
/**
@@ -392,7 +392,7 @@ public function deleteItemsByTagsAll(array $tagNames): array
392392
public function incrementItemsByTagsAll(array $tagNames, $step = 1): array
393393
{
394394
$callback = $this->getGenericCallback();
395-
return $callback(__FUNCTION__, func_get_args());
395+
return $callback(__FUNCTION__, \func_get_args());
396396
}
397397

398398
/**
@@ -403,7 +403,7 @@ public function incrementItemsByTagsAll(array $tagNames, $step = 1): array
403403
public function decrementItemsByTagsAll(array $tagNames, $step = 1): array
404404
{
405405
$callback = $this->getGenericCallback();
406-
return $callback(__FUNCTION__, func_get_args());
406+
return $callback(__FUNCTION__, \func_get_args());
407407
}
408408

409409
/**
@@ -414,7 +414,7 @@ public function decrementItemsByTagsAll(array $tagNames, $step = 1): array
414414
public function appendItemsByTagsAll(array $tagNames, $data): array
415415
{
416416
$callback = $this->getGenericCallback();
417-
return $callback(__FUNCTION__, func_get_args());
417+
return $callback(__FUNCTION__, \func_get_args());
418418
}
419419

420420
/**
@@ -425,7 +425,7 @@ public function appendItemsByTagsAll(array $tagNames, $data): array
425425
public function prependItemsByTagsAll(array $tagNames, $data): array
426426
{
427427
$callback = $this->getGenericCallback();
428-
return $callback(__FUNCTION__, func_get_args());
428+
return $callback(__FUNCTION__, \func_get_args());
429429
}
430430

431431
/**
@@ -435,7 +435,7 @@ public function prependItemsByTagsAll(array $tagNames, $data): array
435435
public function detachItem(CacheItemInterface $item): array
436436
{
437437
$callback = $this->getGenericCallback();
438-
return $callback(__FUNCTION__, func_get_args());
438+
return $callback(__FUNCTION__, \func_get_args());
439439
}
440440

441441
/**
@@ -444,7 +444,7 @@ public function detachItem(CacheItemInterface $item): array
444444
public function detachAllItems(): array
445445
{
446446
$callback = $this->getGenericCallback();
447-
return $callback(__FUNCTION__, func_get_args());
447+
return $callback(__FUNCTION__, \func_get_args());
448448
}
449449

450450
/**
@@ -454,7 +454,7 @@ public function detachAllItems(): array
454454
public function attachItem(CacheItemInterface $item): array
455455
{
456456
$callback = $this->getGenericCallback();
457-
return $callback(__FUNCTION__, func_get_args());
457+
return $callback(__FUNCTION__, \func_get_args());
458458
}
459459

460460
/**
@@ -464,7 +464,7 @@ public function attachItem(CacheItemInterface $item): array
464464
public function isAttached(CacheItemInterface $item): array
465465
{
466466
$callback = $this->getGenericCallback();
467-
return $callback(__FUNCTION__, func_get_args());
467+
return $callback(__FUNCTION__, \func_get_args());
468468
}
469469

470470
/**
@@ -474,7 +474,7 @@ public function isAttached(CacheItemInterface $item): array
474474
public function setEventManager(EventInterface $em): array
475475
{
476476
$callback = $this->getGenericCallback();
477-
return $callback(__FUNCTION__, func_get_args());
477+
return $callback(__FUNCTION__, \func_get_args());
478478
}
479479

480480
/**
@@ -483,6 +483,6 @@ public function setEventManager(EventInterface $em): array
483483
public function getDefaultConfig(): array
484484
{
485485
$callback = $this->getGenericCallback();
486-
return $callback(__FUNCTION__, func_get_args());
486+
return $callback(__FUNCTION__, \func_get_args());
487487
}
488488
}

0 commit comments

Comments
 (0)