Code Duplication    Length = 11-11 lines in 2 locations

debian/flexipeehp/usr/share/php/FlexiPeeHP/FlexiBeeRO.php 1 location

@@ 1759-1769 (lines=11) @@
1756
     *
1757
     * @return string|null id or null if no records
1758
     */
1759
    public function getFirstRecordID()
1760
    {
1761
        $firstID    = null;
1762
        $keyColumn  = $this->getKeyColumn();
1763
        $firstIdRaw = $this->getColumnsFromFlexibee([$keyColumn],
1764
            ['limit' => 1, 'order' => $keyColumn], $keyColumn);
1765
        if (!empty($firstIdRaw)) {
1766
            $firstID = current($firstIdRaw)[$keyColumn];
1767
        }
1768
        return is_numeric($firstID) ? intval($firstID) : $firstID;
1769
    }
1770
1771
    /**
1772
     * Vrací hodnotu daného externího ID

src/FlexiPeeHP/FlexiBeeRO.php 1 location

@@ 1787-1797 (lines=11) @@
1784
     *
1785
     * @return string|null id or null if no records
1786
     */
1787
    public function getFirstRecordID()
1788
    {
1789
        $firstID    = null;
1790
        $keyColumn  = $this->getKeyColumn();
1791
        $firstIdRaw = $this->getColumnsFromFlexibee([$keyColumn],
1792
            ['limit' => 1, 'order' => $keyColumn], $keyColumn);
1793
        if (!empty($firstIdRaw) && isset(current($firstIdRaw)[$keyColumn])) {
1794
            $firstID = current($firstIdRaw)[$keyColumn];
1795
        }
1796
        return is_numeric($firstID) ? intval($firstID) : $firstID;
1797
    }
1798
1799
    /**
1800
     * Vrací hodnotu daného externího ID