Code Duplication    Length = 8-8 lines in 2 locations

src/idiorm/orm/ORM.php 2 locations

@@ 1779-1786 (lines=8) @@
1776
   *
1777
   * @return ORM
1778
   */
1779
  public function where_id_is($id)
1780
  {
1781
    if (is_array($this->_get_id_column_name())) {
1782
      return $this->where($this->_get_compound_id_column_values($id), null);
1783
    } else {
1784
      return $this->where($this->_get_id_column_name(), $id);
1785
    }
1786
  }
1787
1788
  /**
1789
   * Allows adding a WHERE clause that matches any of the conditions
@@ 2179-2186 (lines=8) @@
2176
   *
2177
   * @return ORM
2178
   */
2179
  public function having_id_is($id)
2180
  {
2181
    if (is_array($this->_get_id_column_name())) {
2182
      return $this->having($this->_get_compound_id_column_values($id));
2183
    } else {
2184
      return $this->having($this->_get_id_column_name(), $id);
2185
    }
2186
  }
2187
2188
  /**
2189
   * Add a HAVING ... LIKE clause to your query.