Code Duplication    Length = 5-5 lines in 2 locations

src/JsonDiscovery.php 1 location

@@ 405-409 (lines=5) @@
402
            $this->loadBindingsForKey($key);
403
        }
404
405
        foreach ($this->bindingsByKey[$key] as $i => $binding) {
406
            if ($expr->evaluate($binding)) {
407
                unset($this->bindingsByKey[$key][$i]);
408
            }
409
        }
410
411
        $this->reindexBindingsForKey($key);
412
        $this->syncBindingsForKey($key);

src/KeyValueStoreDiscovery.php 1 location

@@ 359-363 (lines=5) @@
356
            $this->loadBindingsForKey($key);
357
        }
358
359
        foreach ($this->bindingsByKey[$key] as $i => $binding) {
360
            if ($expr->evaluate($binding)) {
361
                unset($this->bindingsByKey[$key][$i]);
362
            }
363
        }
364
365
        $this->reindexBindingsForKey($key);
366
        $this->syncBindingsForKey($key);