Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1879-1888 (lines=10) @@
1876
     * @return int the number of rows deleted
1877
     * @throws EE_Error
1878
     */
1879
    public function delete_permanently_by_ID($id, $allow_blocking = true)
1880
    {
1881
        return $this->delete_permanently(
1882
            array(
1883
                array($this->get_primary_key_field()->get_name() => $id),
1884
                'limit' => 1,
1885
            ),
1886
            $allow_blocking
1887
        );
1888
    }
1889
1890
1891
@@ 1901-1910 (lines=10) @@
1898
     * @return int the number of rows deleted
1899
     * @throws EE_Error
1900
     */
1901
    public function delete_by_ID($id, $allow_blocking = true)
1902
    {
1903
        return $this->delete(
1904
            array(
1905
                array($this->get_primary_key_field()->get_name() => $id),
1906
                'limit' => 1,
1907
            ),
1908
            $allow_blocking
1909
        );
1910
    }
1911
1912
1913