Code Duplication    Length = 10-10 lines in 3 locations

app/Models/Task/Base/Task.php 1 location

@@ 174-183 (lines=10) @@
171
     * @param  string $col If supplied, only the specified column is reset.
172
     * @return void
173
     */
174
    public function resetModified($col = null)
175
    {
176
        if (null !== $col) {
177
            if (isset($this->modifiedColumns[$col])) {
178
                unset($this->modifiedColumns[$col]);
179
            }
180
        } else {
181
            $this->modifiedColumns = array();
182
        }
183
    }
184
185
    /**
186
     * Compares this with another <code>Task</code> instance.  If

app/Models/User/Base/User.php 1 location

@@ 198-207 (lines=10) @@
195
     * @param  string $col If supplied, only the specified column is reset.
196
     * @return void
197
     */
198
    public function resetModified($col = null)
199
    {
200
        if (null !== $col) {
201
            if (isset($this->modifiedColumns[$col])) {
202
                unset($this->modifiedColumns[$col]);
203
            }
204
        } else {
205
            $this->modifiedColumns = array();
206
        }
207
    }
208
209
    /**
210
     * Compares this with another <code>User</code> instance.  If

packages/Price/Models/Selfprice/Base/Selfprice.php 1 location

@@ 180-189 (lines=10) @@
177
     * @param  string $col If supplied, only the specified column is reset.
178
     * @return void
179
     */
180
    public function resetModified($col = null)
181
    {
182
        if (null !== $col) {
183
            if (isset($this->modifiedColumns[$col])) {
184
                unset($this->modifiedColumns[$col]);
185
            }
186
        } else {
187
            $this->modifiedColumns = array();
188
        }
189
    }
190
191
    /**
192
     * Compares this with another <code>Selfprice</code> instance.  If