Code Duplication    Length = 10-10 lines in 2 locations

src/Query/ModeProvider.php 2 locations

@@ 39-48 (lines=10) @@
36
     * @param \Closure|null $group
37
     * @return Query|$this|self
38
     */
39
    public function or(\Closure $group = null): self
40
    {
41
        $this->conjunction = false;
42
43
        if ($group !== null) {
44
            $this->add($this->createGroup(__FUNCTION__, $group));
45
        }
46
47
        return $this;
48
    }
49
50
    /**
51
     * @param \Closure|null $group
@@ 54-63 (lines=10) @@
51
     * @param \Closure|null $group
52
     * @return Query|$this|self
53
     */
54
    public function and(\Closure $group = null): self
55
    {
56
        $this->conjunction = true;
57
58
        if ($group !== null) {
59
            $this->add($this->createGroup(__FUNCTION__, $group));
60
        }
61
62
        return $this;
63
    }
64
65
    /**
66
     * @param string $fn