Code Duplication    Length = 8-8 lines in 2 locations

src/idiorm/orm/ORM.php 2 locations

@@ 1814-1821 (lines=8) @@
1811
   *
1812
   * @return $this
1813
   */
1814
  public function where_id_is($id)
1815
  {
1816
    if (is_array($this->_get_id_column_name())) {
1817
      return $this->where($this->_get_compound_id_column_values($id), null);
1818
    } else {
1819
      return $this->where($this->_get_id_column_name(), $id);
1820
    }
1821
  }
1822
1823
  /**
1824
   * Allows adding a WHERE clause that matches any of the conditions
@@ 2280-2287 (lines=8) @@
2277
   *
2278
   * @return $this
2279
   */
2280
  public function having_id_is($id)
2281
  {
2282
    if (is_array($this->_get_id_column_name())) {
2283
      return $this->having($this->_get_compound_id_column_values($id));
2284
    } else {
2285
      return $this->having($this->_get_id_column_name(), $id);
2286
    }
2287
  }
2288
2289
  /**
2290
   * Add a HAVING ... LIKE clause to your query.