Code Duplication    Length = 8-8 lines in 2 locations

PHPDaemon/Clients/IMAP/Connection.php 2 locations

@@ 540-547 (lines=8) @@
537
     * get a list of messages with number and size
538
     * @param int $uid number of message
539
     */
540
    public function getSize($uid = 0)
541
    {
542
        if ($uid) {
543
            $this->fetch('RFC822.SIZE', $uid, null, true, self::TAG_SIZE);
544
        } else {
545
            $this->fetch('RFC822.SIZE', 1, INF, true, self::TAG_SIZE);
546
        }
547
    }
548
549
    /**
550
     * Fetch a message
@@ 582-589 (lines=8) @@
579
     *
580
     * @param int|null $id message number
581
     */
582
    public function getUniqueId($id = null)
583
    {
584
        if ($id) {
585
            $this->fetch('UID', $id, null, false, self::TAG_GETUID);
586
        } else {
587
            $this->fetch('UID', 1, INF, false, self::TAG_GETUID);
588
        }
589
    }
590
591
    /**
592
     * create a new folder (and parent folders if needed)