Code Duplication    Length = 5-5 lines in 2 locations

src/JsonDiscovery.php 1 location

@@ 398-402 (lines=5) @@
395
            $this->loadBindingsForKey($key);
396
        }
397
398
        foreach ($this->bindingsByKey[$key] as $i => $binding) {
399
            if ($expr->evaluate($binding)) {
400
                unset($this->bindingsByKey[$key][$i]);
401
            }
402
        }
403
404
        $this->reindexBindingsForKey($key);
405
        $this->syncBindingsForKey($key);

src/KeyValueStoreDiscovery.php 1 location

@@ 352-356 (lines=5) @@
349
            $this->loadBindingsForKey($key);
350
        }
351
352
        foreach ($this->bindingsByKey[$key] as $i => $binding) {
353
            if ($expr->evaluate($binding)) {
354
                unset($this->bindingsByKey[$key][$i]);
355
            }
356
        }
357
358
        $this->reindexBindingsForKey($key);
359
        $this->syncBindingsForKey($key);