Code Duplication    Length = 14-14 lines in 2 locations

PHPDaemon/FS/File.php 2 locations

@@ 247-260 (lines=14) @@
244
     * @param  integer $pri Priority
245
     * @return resource|false
246
     */
247
    public function sync($cb, $pri = EIO_PRI_DEFAULT)
248
    {
249
        $cb = CallbackWrapper::forceWrap($cb);
250
        if (!$this->fd) {
251
            if ($cb) {
252
                $cb($this, false);
253
            }
254
            return false;
255
        }
256
        if (!FileSystem::$supported) {
257
            $cb($this, true);
258
            return false;
259
        }
260
        return eio_fsync($this->fd, $pri, $cb, $this);
261
    }
262
263
    /**
@@ 269-282 (lines=14) @@
266
     * @param  integer $pri Priority
267
     * @return resource|false
268
     */
269
    public function datasync($cb, $pri = EIO_PRI_DEFAULT)
270
    {
271
        $cb = CallbackWrapper::forceWrap($cb);
272
        if (!$this->fd) {
273
            if ($cb) {
274
                $cb($this, false);
275
            }
276
            return false;
277
        }
278
        if (!FileSystem::$supported) {
279
            $cb($this, true);
280
            return false;
281
        }
282
        return eio_fdatasync($this->fd, $pri, $cb, $this);
283
    }
284
285
    /**