Code Duplication    Length = 10-10 lines in 5 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/Instance.php 1 location

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

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

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