Code Duplication    Length = 10-10 lines in 3 locations

src/Extensions/Gedmo/NestedSet.php 2 locations

@@ 47-56 (lines=10) @@
44
     * @throws InvalidMappingException
45
     * @return $this
46
     */
47
    public function left($field = 'left', $type = 'integer', callable $callback = null)
48
    {
49
        $this->validateNumericField($type, $field);
50
51
        $this->mapField($type, $field, $callback);
52
53
        $this->left = $field;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @param string        $field
@@ 66-75 (lines=10) @@
63
     * @throws InvalidMappingException
64
     * @return $this
65
     */
66
    public function right($field = 'right', $type = 'integer', callable $callback = null)
67
    {
68
        $this->validateNumericField($type, $field);
69
70
        $this->mapField($type, $field, $callback);
71
72
        $this->right = $field;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @param string        $field

src/Extensions/Gedmo/TreeStrategy.php 1 location

@@ 54-63 (lines=10) @@
51
     * @throws InvalidMappingException
52
     * @return $this
53
     */
54
    public function level($field = 'level', $type = 'integer', callable $callback = null)
55
    {
56
        $this->validateNumericField($type, $field);
57
58
        $this->mapField($type, $field, $callback);
59
60
        $this->level = $field;
61
62
        return $this;
63
    }
64
65
    /**
66
     * @param string        $field