Code Duplication    Length = 10-10 lines in 3 locations

src/Extensions/Gedmo/NestedSet.php 3 locations

@@ 74-83 (lines=10) @@
71
     * @return $this
72
     * @throws InvalidMappingException
73
     */
74
    public function left($field = 'left', $type = 'integer', callable $callback = null)
75
    {
76
        $this->validateNumericField($type, $field);
77
78
        $this->mapField($type, $field, $callback);
79
80
        $this->left = $field;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param string        $field
@@ 93-102 (lines=10) @@
90
     * @return $this
91
     * @throws InvalidMappingException
92
     */
93
    public function right($field = 'right', $type = 'integer', callable $callback = null)
94
    {
95
        $this->validateNumericField($type, $field);
96
97
        $this->mapField($type, $field, $callback);
98
99
        $this->right = $field;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @param string        $field
@@ 112-121 (lines=10) @@
109
     * @return $this
110
     * @throws InvalidMappingException
111
     */
112
    public function level($field = 'level', $type = 'integer', callable $callback = null)
113
    {
114
        $this->validateNumericField($type, $field);
115
116
        $this->mapField($type, $field, $callback);
117
118
        $this->level = $field;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @param string        $field