Code Duplication    Length = 10-10 lines in 6 locations

src/cli/Database/Base/Channel.php 1 location

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

src/cli/Database/Base/Connection.php 1 location

@@ 212-221 (lines=10) @@
209
     * @param  string $col If supplied, only the specified column is reset.
210
     * @return void
211
     */
212
    public function resetModified($col = null)
213
    {
214
        if (null !== $col) {
215
            if (isset($this->modifiedColumns[$col])) {
216
                unset($this->modifiedColumns[$col]);
217
            }
218
        } else {
219
            $this->modifiedColumns = array();
220
        }
221
    }
222
223
    /**
224
     * Compares this with another <code>Connection</code> instance.  If

src/cli/Database/Base/User.php 1 location

@@ 214-223 (lines=10) @@
211
     * @param  string $col If supplied, only the specified column is reset.
212
     * @return void
213
     */
214
    public function resetModified($col = null)
215
    {
216
        if (null !== $col) {
217
            if (isset($this->modifiedColumns[$col])) {
218
                unset($this->modifiedColumns[$col]);
219
            }
220
        } else {
221
            $this->modifiedColumns = array();
222
        }
223
    }
224
225
    /**
226
     * Compares this with another <code>User</code> instance.  If

src/cli/Database/Base/Input.php 1 location

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

src/cli/Database/Base/Instance.php 1 location

@@ 238-247 (lines=10) @@
235
     * @param  string $col If supplied, only the specified column is reset.
236
     * @return void
237
     */
238
    public function resetModified($col = null)
239
    {
240
        if (null !== $col) {
241
            if (isset($this->modifiedColumns[$col])) {
242
                unset($this->modifiedColumns[$col]);
243
            }
244
        } else {
245
            $this->modifiedColumns = array();
246
        }
247
    }
248
249
    /**
250
     * Compares this with another <code>Instance</code> instance.  If

src/cli/Database/Base/Subscription.php 1 location

@@ 254-263 (lines=10) @@
251
     * @param  string $col If supplied, only the specified column is reset.
252
     * @return void
253
     */
254
    public function resetModified($col = null)
255
    {
256
        if (null !== $col) {
257
            if (isset($this->modifiedColumns[$col])) {
258
                unset($this->modifiedColumns[$col]);
259
            }
260
        } else {
261
            $this->modifiedColumns = array();
262
        }
263
    }
264
265
    /**
266
     * Compares this with another <code>Subscription</code> instance.  If