Code Duplication    Length = 6-6 lines in 2 locations

src/idiorm/orm/ORM.php 2 locations

@@ 1280-1285 (lines=6) @@
1277
    }
1278
1279
    // Build the constraint
1280
    if (is_array($constraint)) {
1281
      list($first_column, $operator, $second_column) = $constraint;
1282
      $first_column = $this->_quote_identifier($first_column);
1283
      $second_column = $this->_quote_identifier($second_column);
1284
      $constraint = "{$first_column} {$operator} {$second_column}";
1285
    }
1286
1287
    $this->_join_sources[] = "{$join_operator} {$table} ON {$constraint}";
1288
@@ 1313-1318 (lines=6) @@
1310
    $this->_values = array_merge($this->_values, $parameters);
1311
1312
    // Build the constraint
1313
    if (is_array($constraint)) {
1314
      list($first_column, $operator, $second_column) = $constraint;
1315
      $first_column = $this->_quote_identifier($first_column);
1316
      $second_column = $this->_quote_identifier($second_column);
1317
      $constraint = "{$first_column} {$operator} {$second_column}";
1318
    }
1319
1320
    $this->_join_sources[] = "{$table} ON {$constraint}";
1321