Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1841-1850 (lines=10) @@
1838
     * @return int the number of rows deleted
1839
     * @throws EE_Error
1840
     */
1841
    public function delete_permanently_by_ID($id, $allow_blocking = true)
1842
    {
1843
        return $this->delete_permanently(
1844
            array(
1845
                array($this->get_primary_key_field()->get_name() => $id),
1846
                'limit' => 1,
1847
            ),
1848
            $allow_blocking
1849
        );
1850
    }
1851
1852
1853
@@ 1863-1872 (lines=10) @@
1860
     * @return int the number of rows deleted
1861
     * @throws EE_Error
1862
     */
1863
    public function delete_by_ID($id, $allow_blocking = true)
1864
    {
1865
        return $this->delete(
1866
            array(
1867
                array($this->get_primary_key_field()->get_name() => $id),
1868
                'limit' => 1,
1869
            ),
1870
            $allow_blocking
1871
        );
1872
    }
1873
1874
1875