Code Duplication    Length = 5-5 lines in 2 locations

src/idiorm/orm/IdiormResultSet.php 1 location

@@ 183-187 (lines=5) @@
180
  public function __call($method, $params = array())
181
  {
182
    foreach ($this->_results as $model) {
183
      if (method_exists($model, $method)) {
184
        call_user_func_array(array($model, $method), $params);
185
      } else {
186
        throw new IdiormMethodMissingException("Method $method() does not exist in class " . get_class($this));
187
      }
188
    }
189
190
    return $this;

src/idiorm/orm/ORM.php 1 location

@@ 3213-3217 (lines=5) @@
3210
  {
3211
    $method = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $name));
3212
3213
    if (method_exists($this, $method)) {
3214
      return call_user_func_array(array($this, $method), $arguments);
3215
    } else {
3216
      throw new IdiormMethodMissingException("Method $name() does not exist in class " . get_class($this));
3217
    }
3218
  }
3219
3220
  /**