Code Duplication    Length = 7-7 lines in 4 locations

src/NestedSetsBehavior.php 4 locations

@@ 94-100 (lines=7) @@
91
     * @param array $attributes
92
     * @return boolean
93
     */
94
    public function prependTo($node, $runValidation = true, $attributes = null)
95
    {
96
        $this->operation = self::OPERATION_PREPEND_TO;
97
        $this->node = $node;
98
99
        return $this->owner->save($runValidation, $attributes);
100
    }
101
102
    /**
103
     * Creates a node as the last child of the target node if the active
@@ 110-116 (lines=7) @@
107
     * @param array $attributes
108
     * @return boolean
109
     */
110
    public function appendTo($node, $runValidation = true, $attributes = null)
111
    {
112
        $this->operation = self::OPERATION_APPEND_TO;
113
        $this->node = $node;
114
115
        return $this->owner->save($runValidation, $attributes);
116
    }
117
118
    /**
119
     * Creates a node as the previous sibling of the target node if the active
@@ 126-132 (lines=7) @@
123
     * @param array $attributes
124
     * @return boolean
125
     */
126
    public function insertBefore($node, $runValidation = true, $attributes = null)
127
    {
128
        $this->operation = self::OPERATION_INSERT_BEFORE;
129
        $this->node = $node;
130
131
        return $this->owner->save($runValidation, $attributes);
132
    }
133
134
    /**
135
     * Creates a node as the next sibling of the target node if the active
@@ 142-148 (lines=7) @@
139
     * @param array $attributes
140
     * @return boolean
141
     */
142
    public function insertAfter($node, $runValidation = true, $attributes = null)
143
    {
144
        $this->operation = self::OPERATION_INSERT_AFTER;
145
        $this->node = $node;
146
147
        return $this->owner->save($runValidation, $attributes);
148
    }
149
150
    /**
151
     * Deletes a node and its children.