Code Duplication    Length = 10-10 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 1865-1874 (lines=10) @@
1862
     * @return int the number of rows deleted
1863
     * @throws EE_Error
1864
     */
1865
    public function delete_permanently_by_ID($id, $allow_blocking = true)
1866
    {
1867
        return $this->delete_permanently(
1868
            array(
1869
                array($this->get_primary_key_field()->get_name() => $id),
1870
                'limit' => 1,
1871
            ),
1872
            $allow_blocking
1873
        );
1874
    }
1875
1876
1877
@@ 1887-1896 (lines=10) @@
1884
     * @return int the number of rows deleted
1885
     * @throws EE_Error
1886
     */
1887
    public function delete_by_ID($id, $allow_blocking = true)
1888
    {
1889
        return $this->delete(
1890
            array(
1891
                array($this->get_primary_key_field()->get_name() => $id),
1892
                'limit' => 1,
1893
            ),
1894
            $allow_blocking
1895
        );
1896
    }
1897
1898
1899