Code Duplication    Length = 10-10 lines in 3 locations

packages/core/src/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

packages/selfprice/src/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

packages/core/src/Models/User/Base/User.php 1 location

@@ 226-235 (lines=10) @@
223
     * @param  string $col If supplied, only the specified column is reset.
224
     * @return void
225
     */
226
    public function resetModified($col = null)
227
    {
228
        if (null !== $col) {
229
            if (isset($this->modifiedColumns[$col])) {
230
                unset($this->modifiedColumns[$col]);
231
            }
232
        } else {
233
            $this->modifiedColumns = array();
234
        }
235
    }
236
237
    /**
238
     * Compares this with another <code>User</code> instance.  If