src/JsonDiscovery.php 1 location
|
@@ 342-351 (lines=10) @@
|
339 |
|
|
340 |
|
$this->loadAllBindings(); |
341 |
|
|
342 |
|
foreach ($this->bindingsByKey as $key => $bindingsForKey) { |
343 |
|
foreach ($bindingsForKey as $i => $binding) { |
344 |
|
if ($expr->evaluate($binding)) { |
345 |
|
unset($this->bindingsByKey[$key][$i]); |
346 |
|
} |
347 |
|
} |
348 |
|
|
349 |
|
$this->reindexBindingsForKey($key); |
350 |
|
$this->syncBindingsForKey($key); |
351 |
|
} |
352 |
|
|
353 |
|
$this->flush(); |
354 |
|
} |
src/KeyValueStoreDiscovery.php 1 location
|
@@ 302-313 (lines=12) @@
|
299 |
|
{ |
300 |
|
$this->loadAllBindings(); |
301 |
|
|
302 |
|
foreach ($this->bindingsByKey as $key => $bindingsForKey) { |
303 |
|
foreach ($bindingsForKey as $i => $binding) { |
304 |
|
if ($expr->evaluate($binding)) { |
305 |
|
unset($this->bindingsByKey[$key][$i]); |
306 |
|
} |
307 |
|
} |
308 |
|
|
309 |
|
// Reindex array |
310 |
|
$this->reindexBindingsForKey($key); |
311 |
|
|
312 |
|
$this->syncBindingsForKey($key); |
313 |
|
} |
314 |
|
} |
315 |
|
|
316 |
|
/** |