Code Duplication    Length = 5-5 lines in 2 locations

src/idiorm/orm/IdiormResultSet.php 1 location

@@ 197-201 (lines=5) @@
194
  public function __call($method, $params = array())
195
  {
196
    foreach ($this->_results as $model) {
197
      if (method_exists($model, $method)) {
198
        call_user_func_array(array($model, $method), $params);
199
      } else {
200
        throw new IdiormMethodMissingException("Method $method() does not exist in class " . get_class($this));
201
      }
202
    }
203
204
    return $this;

src/idiorm/orm/ORM.php 1 location

@@ 3305-3309 (lines=5) @@
3302
  {
3303
    $method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));
3304
3305
    if (method_exists($this, $method)) {
3306
      return call_user_func_array(array($this, $method), $arguments);
3307
    } else {
3308
      throw new IdiormMethodMissingException("Method $name() does not exist in class " . get_class($this));
3309
    }
3310
  }
3311
3312
  /**