Code Duplication    Length = 9-9 lines in 2 locations

src/SphinxClient.php 2 locations

@@ 775-783 (lines=9) @@
772
    }
773
774
    /// bind per-field weights by name
775
    public function setFieldWeights($weights)
776
    {
777
        assert(is_array($weights));
778
        foreach ($weights as $name => $weight) {
779
            assert(is_string($name));
780
            assert(is_int($weight));
781
        }
782
        $this->field_weights = $weights;
783
    }
784
785
    /// bind per-index weights by name
786
    public function setIndexWeights($weights)
@@ 786-794 (lines=9) @@
783
    }
784
785
    /// bind per-index weights by name
786
    public function setIndexWeights($weights)
787
    {
788
        assert(is_array($weights));
789
        foreach ($weights as $index => $weight) {
790
            assert(is_string($index));
791
            assert(is_int($weight));
792
        }
793
        $this->index_weights = $weights;
794
    }
795
796
    /// set IDs range to match
797
    /// only match records if document ID is beetwen $min and $max (inclusive)