Code Duplication    Length = 10-10 lines in 3 locations

src/Extensions/Gedmo/NestedSet.php 2 locations

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

src/Extensions/Gedmo/TreeStrategy.php 1 location

@@ 45-54 (lines=10) @@
42
     * @throws InvalidMappingException
43
     * @return $this
44
     */
45
    public function level($field = 'level', $type = 'integer', callable $callback = null)
46
    {
47
        $this->validateNumericField($type, $field);
48
49
        $this->mapField($type, $field, $callback);
50
51
        $this->level = $field;
52
53
        return $this;
54
    }
55
56
    /**
57
     * @param string        $field